2781 Commits

Author SHA1 Message Date
Jonathan Brouwer
8ed03d5181 Rollup merge of #164292 - nnethercote:rm-span_use_eq_ctxt, r=lqd,Kivooeo
Remove the `span_use_eq_ctxt` lint

PR 163857 changed the span representation and reduced `eq_ctxt` to a trivial equality check, which means `span_a.ctxt() == span_b.ctxt()` is now an ok alternative to `span_a.eq_ctxt(span_b)`.

This commit removes `span_use_eq_ctxt` because it's no longer necessary. `eq_ctxt` remains because removing it would cause some churn; it might be worth doing as a follow-up.

r? @Kivooeo
2026-10-14 19:29:34 +02:00
Jonathan Brouwer
03f0b69902 Rollup merge of #164165 - FranciscoTGouveia:rustc-show-spans-attr, r=petrochenkov
Add a new `rustc_show_spans` internal attribute

This new internal attribute is a first step for solving rust-lang/rust#126763.

Given the code:
```rust
#![feature(rustc_attrs)]

mod x { pub const Y: u8 = 1; }

macro_rules! path  { ($a:tt, $b:tt) => { let _ = $a::$b; }; }

#[rustc_show_spans(path)]
fn no_macro() { let _ = x::Y; }

#[rustc_show_spans(path)]
fn path_bug() { path!(x, Y); }
```

We can now report the spans and thus show the bug of the span not falling inside the macro context:
```
note: showing the spans of the path
 --> test.rs:8:25
  |
8 | fn no_macro() { let _ = x::Y; }
  |                         ^^^^

note: showing the spans of the path
  --> test.rs:11:23
   |
11 | fn path_bug() { path!(x, Y); }
   |                       ^^^^

```

r? @petrochenkov
2026-10-14 19:29:16 +02:00
bors
d8ef4f3fe7 Auto merge of #164285 - JonathanBrouwer:rollup-kX2T7LS, r=JonathanBrouwer
Rollup of 3 perf-sensitive pull requests

Successful merges:

 - rust-lang/rust#162727 (Support function args const generics)
 - rust-lang/rust#164059 (perf: drop error in `unwrap_failed` instead of `unwrap`)
 - rust-lang/rust#164236 (Move `fully_perform` early return earlier)
2026-10-14 08:29:20 +00:00
Nicholas Nethercote
c0976820bf Remove the span_use_eq_ctxt lint
PR 163857 changed the span representation and reduced `eq_ctxt` to a
trivial equality check, which means `span_a.ctxt() == span_b.ctxt()` is
now an ok alternative to `span_a.eq_ctxt(span_b)`.

This commit removes `span_use_eq_ctxt` because it's no longer necessary.
`eq_ctxt` remains because removing it would cause some churn; it might
be worth doing as a follow-up.
2026-10-14 11:15:41 +11:00
Jonathan Brouwer
49c9894174 Rollup merge of #162727 - bit-aloo:2026-09-06-function-argument-const-generics, r=khyperia
Support function args const generics

This PR adds initial support for argument-position const generics behind the `function_arg_const_generics` feature gate.

It allows const generics to be declared directly in function arguments. The PR adds the basic plumbing across AST, HIR, and `ty`, parses  these parameters into the function's generics, lowers call arguments into consts. For now, we lower literals, negated literals, const parameters, const items, unit variants, and etc, This works for functions, methods and a couple of more cases.

r? @BoxyUwU
cc: @khyperia
2026-10-13 23:00:40 +02:00
Jonathan Brouwer
4b679d4f89 Rollup merge of #164269 - mejrs:snake_case_placeholders, r=mu001999
convert non-generic diagnostic attribute placeholders to snake_case

In https://github.com/rust-lang/rust/pull/163636#issuecomment-6106894965 there's general consensus that these should be snake_case. There's not consensus about the names, only that they should be snake_case. So I'll leave that for later.

(this doesn't affect stable diagnostic attributes)
2026-10-13 21:29:38 +02:00
mejrs
8def69b4a7 convert non-generic diagnostic attribute placeholders to snake_case 2026-10-13 18:13:08 +02:00
bors
1e16699602 Auto merge of #163857 - nnethercote:overhaul-span-compression, r=petrochenkov
Overhaul span compression



Currently there are span representations if you have a context and no parent, or a parent and no context. But if you have both a context *and* a parent, the span is always interned. In incremental builds this is something like 20-40% of all spans.

This commit uses a new compression scheme that gives small perf wins for non-incremental and bigger perf wins for incremental. The following table briefly summarizes the formats.

```
-----------------------------------------------------------------
              old                        new
-----------------------------------------------------------------
InlineCtxt    lo32,len15,ctxt16,parent0  lo32,len15,ctxt16,parent0
InlineParent  lo32,len15,ctxt0,parent16  lo32,len14,ctxt0,parent15
InlinePair    n/a                        lo24,len7,ctxt15,parent16
PartialInt.   ctxt16                     everything else
FullInt.      everything else            n/a
```

Things to note.

- The old scheme had a 32-bit field and two 16-bit fields. The new scheme has one 64-bit field and uses `repr(packed(4))`. (Keeping the alignment at 4 is important to keep AST node sizes low.)

- The new scheme distinguishes the four formats with a single variable-length prefix in the high bits. This is simpler than the old combination of tag bits and special values.

- The new `SpanField` type is used to describe the various field widths for each format, and provide operations on them.

- The new `InlineParent` is very slightly worse than the old one, with one less bit for each of len and parent. This doesn't affect many spans.

- The new `InlinePair` format handles most cases where both a context and a parent are present. It has to compromise some on `lo` and `len`, but still gets a lot of them. This is the big performance win.

- The partially/fully interned cases are merged, because the Interned format can now always hold a full context inline, and the new `Interned` is equivalent to the old PartiallyInterned format. (This requires limiting ctxts to 29 bits, but we'll hit other problems, such as OOM, long before that limit is reached.) This also means we don't need to store the ctxt field in the interner, and we use the new `SpanDataNoCtxt` type for that.

r? @petrochenkov
2026-10-13 15:24:31 +00:00
Nicholas Nethercote
d25eebbfb7 Overhaul span compression
Currently there are span representations if you have a context and no
parent, or a parent and no context. But if you have both a context *and*
a parent, the span is always interned. In incremental builds this is
something like 20-40% of all spans.

This commit uses a new compression scheme that gives small perf wins for
non-incremental and bigger perf wins for incremental. The following table
briefly summarizes the formats.

```
-----------------------------------------------------------------
              old                        new
-----------------------------------------------------------------
InlineCtxt    lo32,len15,ctxt16,parent0  lo32,len15,ctxt16,parent0
InlineParent  lo32,len15,ctxt0,parent16  lo32,len14,ctxt0,parent15
InlinePair    n/a                        lo24,len7,ctxt15,parent16
PartialInt.   ctxt16                     everything else
FullInt.      everything else            n/a
```

Things to note.

- The old scheme had a 32-bit field and two 16-bit fields. The new scheme has
  one 64-bit field and uses `repr(packed(4))`. (Keeping the alignment at
  4 is important to keep AST node sizes low.)

- The new scheme distinguishes the four formats with a single variable-length
  prefix in the high bits. This is simpler than the old combination of tag bits
  and special values.

- The new `SpanField` type is used to describe the various field widths
  for each format, and provide operations on them.

- The new `InlineParent` is very slightly worse than the old one, with one less
  bit for each of len and parent. This doesn't affect many spans.

- The new `InlinePair` format handles most cases where both a context and a
  parent are present. It has to compromise some on `lo` and `len`, but still
  gets a lot of them. This is the big performance win.

- The partially/fully interned cases are merged, because the Interned format
  can now always hold a full context inline, and the new `Interned` is
  equivalent to the old PartiallyInterned format. (This requires
  limiting ctxts to 29 bits, but we'll hit other problems, such as OOM,
  long before that limit is reached.) This also means we don't need to
  store the ctxt field in the interner, and we use the new
  `SpanDataNoCtxt` type for that.
2026-10-13 10:01:48 +11:00
bors
88d982422a Auto merge of #164230 - jhpratt:rollup-nYrhFxL, r=jhpratt
Rollup of 7 pull requests

Successful merges:

 - rust-lang/rust#163798 (validate generic parameter remapping in delegation)
 - rust-lang/rust#164134 (bootstrap: add an rpath to LLVM library for LLVM tools)
 - rust-lang/rust#164190 (Tweak wording of "expected/found signature" errors)
 - rust-lang/rust#163578 (Add internal #[rustc_assert_variance] attribute for use in std)
 - rust-lang/rust#164126 (tests: Ignore dynamic-loading-cdylib on musl hosts)
 - rust-lang/rust#164171 (More `tests/rustdoc-html` cleanups)
 - rust-lang/rust#164221 (tests: cover `dead_code_pub_in_binary` expectations with `--test`)
2026-10-12 22:38:58 +00:00
Francisco Gouveia
fdefc162fb Add a new rustc_show_spans internal attribute
This new attribute is a first step for solving issue 126763.
Now, we can easily test out where spans end up, particularly useful for
ensuring that spans end up in the best suitable macro context.
2026-10-12 22:41:32 +01:00
Jonathan Brouwer
4dbaa9dc7e Rollup merge of #164150 - panstromek:pre-alloc-symbol-intern, r=nnethercote
Reserve more capacity for Symbol interner

This avoids some resizing and rehashing. More details in the added comment.
2026-10-12 21:16:48 +02:00
June Pyle
5f5e9abe13 Fully implement rustc_assert_variance. Add additional span data to RustcAssertVariance for diagnostic purposes. 2026-10-12 08:15:02 -07:00
June Pyle
6314d17b5e Implement attribute parser for #[rustc_assert_variance] 2026-10-12 08:15:02 -07:00
panstromek
bd198f3813 Reserve more capacity for Symbol interner 2026-10-11 14:45:52 +02:00
Jonathan Brouwer
a2170e9351 Rollup merge of #163956 - Urgau:rustdoc-doctest-scopes, r=GuillaumeGomez
Pass the unremapped path to the `rustc` invocation for doctests

Turns out that `--remap-path-scope` is only half working with doctests, this is because `rustdoc` use a secret environment variable to pass the real filename of the doctest.

However we were only passing a remapped path. That means that doctests source path were getting remapped, but only for one scope: `documentation`. It didn't respect `macro` for `file!` for example.

To fix this, we have to:
 1. pass the local path to the `rustc` invocation
 2. have `rustc` treat that path as a real filename and apply remapping per scope to it
    - I had to add a new `Input` variant, otherwise I can't differentiate normal input `-` from doctests `-` source
 4. we have to pass `--remap-path-{prefix,scope}` to `rustc` so the path actually gets remap properly
2026-10-09 22:07:02 +02:00
Jonathan Brouwer
98476db374 Rollup merge of #163337 - Amanieu:move-elimination/precise-liveness, r=tmiasko
MIR move elimination [3/6]: PreciseLiveness

Depends on rust-lang/rust#163335

This PR implements the lifetime analysis used by the `MoveElimination` pass from https://github.com/rust-lang/rfcs/pull/3943.

`PreciseLiveness` calculates, at a sub-statement granularity, the points in a function where a local requires storage to be allocated. This is more fine-grained than `MaybeStorageLive`, and takes borrows into account.

r? tmiasko
2026-10-09 22:06:58 +02:00
bit-aloo
830a06e3a8 Parse const params in fn parameter lists behind function_arg_const_generics 2026-10-09 09:30:45 +00:00
Amanieu d'Antras
c645363ba0 Add dataflow tests for PreciseLiveness 2026-10-09 00:10:51 +01:00
Urgau
8f2db6e821 Correctly represent doctest source as a RealFileName plus line 2026-10-08 22:11:13 +02:00
Jonathan Brouwer
0a2f88c0b5 Rollup merge of #163538 - ada4a:missing-generic-type-visitable, r=JonathanBrouwer
Add `rustc::missing_generic_type_visitable` lint

Best reviewed commit-by-commit.

The CI will probably complain about the TODOs, but I've added them deliberately, as a way to ask questions.

r? @JonathanBrouwer
cc @rust-lang/rust-analyzer
2026-10-08 21:50:01 +02:00
bors
65efa19420 Auto merge of #163321 - aerooneqq:local-def-index, r=oli-obk,petrochenkov
Use `LocalDefId` as an index in metadata encoding



The goal of this PR to eliminate encoding of a raw `DefIndex`, instead we should encode something (`LocalDefId`) that certainly indicates that index belongs to the local crate. The implementation of `DefIndex` encoding should always panic to prevent accidental remappings of non-local `DefIndex`es in rust-lang/rust#162809. 

So the plan is as follows:

- Use `LocalDefId` as a writing index in tables for metadata encoding, use `LocalDefId` instead of `DefIndex` everywhere, specialize encode/decode methods to correctly process it,
- Replace implementation of `encode_def_index` in `EncodeContext` with panic, so we never remap and encode def index,
- Make tables' keys two-sided: we can read and write using different index types, in this case we will write using `LocalDefId` and read using `DefIndex` (done in rust-lang/rust#163447).

Blocked by rust-lang/rust#162900.

r? @petrochenkov
2026-10-08 10:25:14 +00:00
Ada Alakbarova
19735e029e add MISSING_GENERIC_TYPE_VISITABLE lint 2026-10-08 10:08:50 +02:00
Jonathan Brouwer
21ded48253 Rollup merge of #163921 - khyperia:abby-dsl-ambiguity, r=BoxyUwU
abby DSL: implement ambiguity

r? @BoxyUwU
2026-10-07 16:44:43 +02:00
aerooneqq
b92cb3e1a6 Use LocalDefId instead of DefIndex in metadata encoding 2026-10-07 08:36:48 +00:00
khyperia
5040ebcd88 abby DSL: implement ambiguity 2026-10-07 09:08:53 +02:00
Folkert de Vries
3f3f4f05d3 add Float::PpcF128 and RegKind::PpcF128 2026-10-07 00:18:37 +02:00
bors
260f1acad9 Auto merge of #163721 - tmiasko:pretty-dataflow, r=Amanieu
Annotate MIR with dataflow results for testing purposes

When requested through an internal rustc attribute, include dataflow
results in MIR output, i.e., `-Zunpretty=mir` or `--emit mir`.

For now, supported dataflows are:
* `#[rustc_mir(rustc_pretty_live_locals)]`
* `#[rustc_mir(rustc_pretty_transitive_live_locals)]`

The mechanism is intended to supersede existing `rustc_peek` intrinsic.
For demonstration also migrates one of tests based on `rustc_peek`:
tests/ui/mir-dataflow/liveness-projection.rs.
2026-10-04 22:32:51 +00:00
Jonathan Brouwer
1b9f376e35 Rollup merge of #163742 - jlpetz:movdir64b-target-feature, r=folkertdev
Add the `movdir64b` and `movdiri` x86 target features

Adds the unstable `movdir64b` and `movdiri` x86 target features, gated behind `#![feature(movdir64b_target_feature)]` and `#![feature(movdiri_target_feature)]`, and runtime detection with `is_x86_feature_detected!("movdir64b")` / `is_x86_feature_detected!("movdiri")` (CPUID.(EAX=7,ECX=0):ECX[28] and ECX[27]).

`MOVDIR64B` moves 64 bytes from memory to a 64-byte aligned destination as a single direct store; `MOVDIRI` stores a 32- or 64-bit integer as a direct store. Both are on Intel Tiger Lake / Alder Lake and later, Sapphire Rapids and later Xeons, and AMD Zen 5. They're standalone CPUID features that aren't part of any psABI microarchitecture level, so they need their own feature flags.

**This is the compiler half of a two-PR feature, like `clflushopt` in rust-lang/rust#157098.** The `_movdir64b`, `_directstoreu_u32` and `_directstoreu_u64` intrinsics (rust-lang/stdarch#2239) can't compile until these target features exist, so the stdarch PR is blocked on this one merging and syncing into stdarch's pinned toolchain.

- Tracking issue: rust-lang/rust#163741
- Unblocks intrinsics: rust-lang/stdarch#2239

Today the only way to emit these instructions from Rust is `asm!`, which also hides them from LLVM: a copy loop through `llvm.x86.movdir64b` gets unrolled and the source address becomes a displacement, while the `asm!` version stays one instruction per iteration with both addresses in registers.

`movdir64b` and `movdiri` are LLVM's feature names, so they map 1:1 through `to_llvm_features` with no remap entry. I ran the two new feature-gate tests, `check-cfg/target_feature` and `target-feature/invalid-attribute`, the std_detect tests (which report both features as `true` on a Xeon 6975P-C), and tidy locally on x86_64-pc-windows-msvc.

r? @folkertdev
2026-10-04 21:28:26 +02:00
tmiasko
3b3e0980a6 Annotate MIR with dataflow results for testing purposes
When requested through an internal rustc attribute, include dataflow
results in MIR output, i.e., `-Zunpretty=mir` or `--emit mir`.

For now, supported dataflows are:
* `#[rustc_mir(rustc_pretty_live_locals)]`
* `#[rustc_mir(rustc_pretty_transitive_live_locals)]`

The mechanism is intended to supersede existing `rustc_peek` intrinsic.
For demonstration also migrates one of tests based on `rustc_peek`:
tests/ui/mir-dataflow/liveness-projection.rs.
2026-10-04 15:12:57 +00:00
Jarrod Petz
d9d21db1d5 Add the movdir64b and movdiri x86 target features
`MOVDIR64B` and `MOVDIRI` (direct stores of 64 bytes and of a 32/64-bit
integer) are standalone x86 CPUID features, on Intel Tiger Lake and
Sapphire Rapids onwards and AMD Zen 5, that are not part of any psABI
microarchitecture level. They need their own unstable target features,
gated behind `movdir64b_target_feature` and `movdiri_target_feature`.

This is the compiler half of exposing the `_movdir64b`,
`_directstoreu_u32` and `_directstoreu_u64` intrinsics; the stdarch half
is blocked on this landing.

Also update the check-cfg/target_feature UI test reference, which
enumerates the full set of valid target features.
2026-10-04 17:29:46 +11:00
Esteban Küber
0103c947a5 When compiling without a specified --edition, emit a eprintln message
Use same wording as cargo does when `package.edition` is unspecified.

Do not suggest `--edition=future` on stable.
2026-10-03 18:21:08 +00:00
Jonathan Brouwer
99f6df7fc7 Rollup merge of #163574 - tgross35:intrinsics-abort-rename, r=clarfonthey
intrinsics: Rename `abort` to `abort_immediate`

The semantics of `intrinsics::abort()` are closer to what we have unstably as `abort_immediate()` than to `process::abort()` or `libc::abort()`. Rename it to make more clear that the intrinsic is more of an intentional crash with platform-specific behavior than what `libc::abort()` tries to be (i.e. raising `SIGABRT`).

If desired, a new intrinsic like `abort_gracefully` could be introduced that performs platform-specific behavior. This would more cleanly unblock https://github.com/rust-lang/rust/pull/149780.

See also discussion at the tracking issue for `immediate_abort` https://github.com/rust-lang/rust/issues/154601.
2026-10-02 22:39:48 +02:00
Trevor Gross
e9b0eeb99d intrinsics: Rename abort to abort_immediate
The semantics of `intrinsics::abort()` are closer to what we have
unstably as `abort_immediate()` than to `process::abort()` or
`libc::abort()`. Rename it to make more clear that the intrinsic is more
of an intentional crash with platform-specific behavior than what
`libc::abort()` tries to be (i.e. raising `SIGABRT`).
2026-10-02 18:56:41 +00:00
Jonathan Brouwer
3951fd6816 Rollup merge of #163603 - yara-blue:reflection-reorder, r=oli-obk
Reorganise reflection intrinsics

Trivial refactor moving some things around.

We got a fair amount of intrinsics for reflection now with more on the way. At this point it's worth it to reorganize things a little. This prefixes them with `type_id_` (`TypeId` is the entry point for _nearly_ all of reflection) and moves their declaration into its own module (`core::intrinsics::reflection`).

Possible contentious is the move of the `type_id` intrinsic which has existed for a while and was previously at `core::intrinsics::type_id`. It is still unstable and as far as I am aware intrinsics should really not be relied upon by users.

I've decided to leave the `field_representing_field` (name, offset, actual_type_of) where they are since those where not created for reflection and will be changed in the future (see: https://github.com/rust-lang/rust/issues/162127).

r? oli-obk
2026-10-02 16:08:13 +02:00
Jonathan Brouwer
3fa7cd22dc Rollup merge of #163587 - nnethercote:small-span-improvements, r=petrochenkov
Several small span improvements

Limit changes:
- Increase `MAX_CTXT`: it is currently `0b0111_1111_1111_1110` (~15 bits). But it only needs to be distinguishable from `CTXT_INTERNED_MARKER` (all 1s). So we can increase it to `0b1111_1111_1111_1110` (~16 bits). The old limit is rarely reached; the `uom` crate is an exception (it has 39k contexts) and we see a 1-2% instruction count reduction when building it. (This value was incorrectly reduced from ~16 bits to ~15 bits in e525e4f10a by me; apologies!)

Renamings:
- Rename `MAX_CTXT` as `MAX_CTXT_OR_PARENT` because it also relates to the parent field.
- Remove the `BASE_` prefix from `BASE_LEN_INTERNED_MARKER` because it doesn't mean anything.

Comments:
- Update parts of the comment that predate the addition of the `parent` field, such as the frequency measurements. (In incremental builds, 20-40% internment due to non-root context and non-zero parent is common.)
- Slightly clarify the meanings of the fields in the different forms, and add a paragraph quickly explaining which specific values distinguish the four forms.

r? @petrochenkov
2026-10-02 16:08:12 +02:00
Jonathan Brouwer
522c673572 Rollup merge of #151793 - landsharkiest:float_mul_add_relaxed-#151770, r=tgross35
Add mul_add_relaxed methods for floating-point types

Implements mul_add_relaxed for f16, f32, f64, and f128, which computes (self * a) + b with relaxed precision semantics. Unlike mul_add which guarantees a fused operation, this variant allows the compiler to choose between fused or separate operations based on target performance.

This fills the gap between the precision-guaranteed mul_add and the fully-optimizable algebraic operators, providing target-specific optimization while maintaining reasonable floating-point semantics.

Tracking issue: https://github.com/rust-lang/rust/issues/151770

try-job: dist-i586-gnu-i586-i686-musl
2026-10-02 16:08:07 +02:00
Yara
9b60c2ad0f reflection: move type_id intrinsics to intrinsics::reflection 2026-10-02 14:05:54 +02:00
landsharkiest
b533b2617d Add mul_add_relaxed methods for floating-point types 2026-10-02 08:15:45 +02:00
Nicholas Nethercote
13b380dbe8 Several small span improvements
Limit changes:
- Increase `MAX_CTXT`: it is currently `0b0111_1111_1111_1110` (~15
  bits). But it only needs to be distinguishable from
  `CTXT_INTERNED_MARKER` (all 1s). So we can increase it to
  `0b1111_1111_1111_1110` (~16 bits). The old limit is rarely reached;
  the `uom` crate is an exception (it has 39k contexts) and we see a
  1-2% instruction count reduction when building it.
  (This value was incorrectly reduced from ~16 bits to ~15 bits in
  e525e4f10a by me; apologies!)

Renamings:
- Rename `MAX_CTXT` as `MAX_CTXT_OR_PARENT` because it also relates to
  the parent field.
- Remove the `BASE_` prefix from `BASE_LEN_INTERNED_MARKER` because it
  doesn't mean anything.

Comments:
- Update parts of the comment that predate the addition of the `parent`
  field, such as the frequency measurements. (In incremental builds,
  20-40% internment due to non-root context and non-zero parent is
  common.)
- Slightly clarify the meanings of the fields in the different forms,
  and add a paragraph quickly explaining which specific values
  distinguish the four forms.
2026-10-01 16:28:10 +10:00
bjorn3
d731edabc0 Remove #[linkage = "common"]
A common definition is like a weak definition except that it must be a
zero-initialized static and when merging two common symbols with the
same name, the size and alignment are set to the higher of both symbols.
This is used for tentative definitions in C and doesn't have any reason
to exist outside of that. This behavior doesn't work across dylibs and
common symbols have inconsistent behavior across linkers [1]. It is also
fragile to rely on getting the largest size of all common symbol
definitions as a (possibly smaller) global definition can override it.

Link: https://maskray.me/blog/all-about-common-symbols [1]
2026-09-30 16:59:42 +02:00
bjorn3
7c35df5fd9 Remove #[linkage = "internal"]
Rustc already defaults to this for regular items whenever possible.
Overriding it would only lead to linker errors. And for
depending on the exact codegen unit partitioning rustc uses, so there it
is a bad idea to use it too.
2026-09-30 16:59:27 +02:00
Yara
6cc4b6f5b0 reflection: prefix reflection intrinsics with type_id 2026-09-29 17:09:19 +02:00
Trevor Gross
e7ac0de1e2 Rollup merge of #163427 - khyperia:gca-adts, r=BoxyUwU
implement #![feature(gca_adts)]

Tracking issue: https://github.com/rust-lang/rust/issues/163420

r? @BoxyUwU
2026-09-28 23:20:41 -05:00
bors
c1070d6938 Auto merge of #163449 - JonathanBrouwer:rollup-RD7XqTw, r=JonathanBrouwer
Rollup of 7 pull requests

Successful merges:

 - rust-lang/rust#163327 (remove `MutTy`)
 - rust-lang/rust#162910 (Deterministic encoding of `DefPathHashMap`)
 - rust-lang/rust#163009 (dont store arbitrary parsed attributes in thir)
 - rust-lang/rust#162683 (Use attribute parser for `#[inline()]` attribute check)
 - rust-lang/rust#163429 (lint on `Ident::from_str_and_span` taking a string literal)
 - rust-lang/rust#163431 (Allow `#[repr(simd)]` with `f16b`)
 - rust-lang/rust#163433 (Support also `try-jobs:` to specify custom try jobs)
2026-09-28 15:28:49 +00:00
khyperia
9e8ca583f8 implement #![feature(gca_adts)] 2026-09-28 15:50:47 +02:00
Jonathan Brouwer
773bab3921 Rollup merge of #163303 - nnethercote:fix-Span-eq-ord, r=oli-obk
Remove `PartialOrd`/`Ord` impls for `Span`/`SpanData`

Because they are inconsistent with the `PartialEq`/`Eq` impls, and span ordering is inherently dubious. Details in individual commits.

r? @oli-obk
2026-09-28 14:19:39 +02:00
cyrgani
9c7ce01321 lint on Ident::from_str_and_span taking a string literal
This function is a wrapper around `Symbol::intern`, which is already checked by the `rustc::symbol_intern_string_literal` lint.
2026-09-28 08:58:21 +00:00
León Orell Valerian Liehr
abcef06337 Implement forced keywords (k#)
* Implement forced keywords
* Allow any identifier to be forced as a keyword even if not reserved
2026-09-27 20:53:55 +00:00
Nicholas Nethercote
1b8ac4710b Remove Span::source_equal
It can be replaced with `Span::lo_hi` + `==`.
2026-09-26 09:05:23 +10:00