Skip to content

Automatic Rustup - #5674

Merged
RalfJung merged 18 commits into
masterfrom
rustup-2026-11-24
Nov 24, 2026
Merged

RalfJung merged 18 commits into
masterfrom
rustup-2026-11-24

Conversation

@workflows-miri

Copy link
Copy Markdown
Contributor

Merge ref 'f7da9a42368f' from rust-lang/rust

Pull recent changes from https://github.com/rust-lang/rust via Josh.

Previous upstream ref: rust-lang/rust@fde8dfd
New upstream ref: rust-lang/rust@f7da9a4
Filtered ref: 54ec598
Upstream diff: rust-lang/rust@fde8dfd...f7da9a4

This merge was created using https://github.com/rust-lang/josh-sync.

asquared31415 and others added 18 commits November 22, 2026 17:31
Output type refactors & change analysis query into required_analysis

Split from rust-lang/rust#163670

We split OutputType from `config.rs` to `output.rs`, and because we only use full_analysis a single time in each compilation (at least currently), convert it to a regular function, and have `required_analysis` be the query.

r? @bjorn3
Introduce `rustc-unicode` crate for centralising Unicode version management

Related to rust-lang/rust#165289.
I noticed that, while we check that `UNICODE_VERSION` is consistent across several crates, not all are included in the check. This introduces a new `rustc-unicode` crate which handles depending on any `unicode-*` crates, checks their versions are consistent, and re-exports them.
`unicode-script` is one such crate that wasn't being checked, so update the version of that crate.
Tidy-sort and use more of `GeneratedAttr`

Can be reviewed commit by commit, every commit passes tests

r? @mejrs (or someone else)
Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#166270 (Output type refactors & change analysis query into required_analysis)
 - rust-lang/rust#165302 (Introduce `rustc-unicode` crate for centralising Unicode version management)
 - rust-lang/rust#166249 (Tidy-sort and use more of `GeneratedAttr`)
 - rust-lang/rust#166370 (Disallow duplicates of `rustc_const_stable_indirect` and `allow_internal_unsafe` attributes)
…=oli-obk

reflection: erase bound regions in function_ptr()

Fixes: rust-lang/rust#153176

skip_binder() only removes for<'a, ...> bound region declarations, so regions without declarations were left behind.
On nightly, the problem issue mentioned occurs.
ICE `Not enough bound vars: '^0 not found in []` on local (with debug assertions) when calling `trait_info_of`

Fixed this issue by using `instantiate_bound_regions_with_erased` to erase bound regions on function_ptr() not to leave regions without declarations.

r? @oli-obk

(since you are the compiler champion of reflection & comptime, and I saw you asked the reviewee to leave a FIXME that I removed on this PR: rust-lang/rust#152173 (comment))
Parser: Clean up `parse_expr_dot_or_call_with` & simplify `parse_expr_prefix`

<sub>(No LLM was or will be used by me during the entire creation process of this PR)</sub>
Separate `Primitive::Bool` and make `#[repr($int)]` enums always use the ABI of $int

This properly gives `bool` its own ABI, shared only with bool-like `enum`s that have **no explicit repr**. `#[repr($int)]` `enum`s now always use the ABI of `$int`.

This PR makes **no language guarantees**, however it will help facilitate such guarantees, if they're decided on: rust-lang/unsafe-code-guidelines#628

Additionally, it seems to give LLVM slightly more information about the tags of certain enums, especially when it comes to variants with different sizes.

Previously, bools were identified for the purposes of ABI as being any `u8` primitive that had a valid range of `0..=1`. An enum with `#[repr(u8)]` and with discriminants `0` and `1` would satisfy that condition and be treated like a bool. This is somewhat sketchy, and while no miscompilation has been found, I would not be surprised if the i1 Extension Situation could cause problems on some targets.

fixes rust-lang/rust#165026

cc rust-lang/rust#165800. this PR doesn't make that situation any worse, but it is bool ABI related, and this PR adds a commented-out test related to this pre-existing situation.
…, r=lqd

Require the next-solver for unsafe binders

We're approaching stabilization and trying to implement things for the old solver is a huge pain.

r? adwinwhite
Move more rustc lint attributes to lint helpers.

Part 2 of implementing rust-lang/rust#160808

(For part 1, see rust-lang/rust#163625)
…pls, r=clarfonthey

Unstably implement `StaticAllocator` on fundamental types

Unstably implements `StaticAllocator` on `Box` and `Pin`.

These types are fundamental, and we use `StaticAllocator` in bounds (specifically `impl From<Box<T, A>> for Pin<Box<T, A>> where A: StaticAllocator`, so adding impls for them would generally be already breaking due to coherence.

The impls here are barely not breaking, because all `StaticAllocator` implementors are currently considered local to std, so any code that tries to observe the non-existence of these impls through coherence fails with something like "upstream could add a `StaticAllocator` impl to `Box<Global>`". This isn't really ideal, so to prevent any accidents in the future, this PR adds these `#[unstable_feature_bound]` impls.

The impl for `Box` could be added stably, but I'd rather do that in a separate PR, because doing so would require FCP (it would allow `Box::into_pin(Box::new_in(1, Box::new(Global)))`), and I don't want this semver risk at the back of my mind for weeks.

The impl for `Pin` is not correct, and only meant as a reservation impl (hence the separate "`internal_`" feature gate). See the `FIXME` comment above it.

r? clarfonthey
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#164537 (Parser: Clean up `parse_expr_dot_or_call_with` & simplify `parse_expr_prefix`)
 - rust-lang/rust#165481 (Separate `Primitive::Bool` and make `#[repr($int)]` enums always use the ABI of $int)
 - rust-lang/rust#166290 (Require the next-solver for unsafe binders)
 - rust-lang/rust#165865 (Move more rustc lint attributes to lint helpers.)
 - rust-lang/rust#166221 (Unstably implement `StaticAllocator` on fundamental types)
Share more debuginfo for inlined functions



We currently share debuginfo for inlined callees within a function. This PR expands that sharing from "within a function" to "within a CGU". This reduces the size of, and time to compile, debug builds.

r? @wesleywiser
This updates the rust-version file to f7da9a42368f31abb02b8064bb93a11bf9ba9f5e.
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Previous upstream ref: rust-lang/rust@fde8dfd
New upstream ref: rust-lang/rust@f7da9a4
Filtered ref: 54ec598
Upstream diff: rust-lang/rust@fde8dfd...f7da9a4

This merge was created using https://github.com/rust-lang/josh-sync.
@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Nov 24, 2026
@RalfJung
RalfJung added this pull request to the merge queue Nov 24, 2026
Merged via the queue into master with commit cd0521b Nov 24, 2026
15 checks passed
@RalfJung
RalfJung deleted the rustup-2026-11-24 branch November 24, 2026 07:41
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants