Skip to content

Rollup of 5 pull requests - #166415

Merged
rust-bors[bot] merged 14 commits into
rust-lang:mainfrom
jhpratt:rollup-KEoskuu
Nov 23, 2026
Merged

rust-bors[bot] merged 14 commits into
rust-lang:mainfrom
jhpratt:rollup-KEoskuu

Conversation

@jhpratt

@jhpratt jhpratt commented Nov 23, 2026

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

maxdexh and others added 14 commits November 19, 2026 21:45
Don't artificially suppress the `.` & `?` expectation after `return`
that doesn't make any sense. `return.field` & `return?` are perfectly
legal. Moreover, this rather simplistic check didn't even account for any
of `return`'s "siblings" (`break`, `continue`, `yield`, `become`,
`do yeet`).
…=camelid

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>
…kingjubilee

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#165026

cc rust-lang#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.
…xt-solver, 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#160808

(For part 1, see rust-lang#163625)
…-alloc-impls, 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
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 23, 2026
@rustbot rustbot added A-allocators Area: Custom and system allocators A-attributes Area: Attributes (`#[…]`, `#![…]`) A-box Area: Our favorite opsem complication A-iterators Area: Iterators A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-slice-vec Area: `[T]` and `Vec<T>` A-str Area: `str` and `String` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Nov 23, 2026
@jhpratt

jhpratt commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

@rust-bors

rust-bors Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 4e73e06 has been approved by jhpratt

It is now in the queue for this repository.

@rust-bors rust-bors Bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Nov 23, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 23, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 23, 2026
@rust-bors

rust-bors Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: jhpratt
Duration: 3h 22m 1s
Pushing 20fe935 to main...

@rust-bors
rust-bors Bot merged commit 20fe935 into rust-lang:main Nov 23, 2026
15 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor
What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 2772402 (parent) -> 20fe935 (this PR)

Test differences

Show 108 test diffs

Stage 1

  • [ui (polonius)] tests/ui/internal-lints/disallowed_pass_by_ref_self.rs: [missing] -> pass (J2)
  • [ui (polonius)] tests/ui/internal-lints/rustc_pass_by_value_self.rs: pass -> [missing] (J2)
  • [ui] tests/ui/internal-lints/disallowed_pass_by_ref_self.rs: [missing] -> pass (J3)
  • [ui] tests/ui/internal-lints/rustc_pass_by_value_self.rs: pass -> [missing] (J3)
  • [codegen] tests/codegen-llvm/enum/enum-repr-abi.rs: [missing] -> pass (J4)
  • [ui] tests/ui-fulldeps/internal-lints/disallowed_pass_by_ref.rs: [missing] -> ignore (ignored when the bootstrapping stage is stage1 ((this can be removed in 2027))) (J5)
  • [ui] tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs: ignore (ignored when the bootstrapping stage is stage1 ((this can be removed when nightly goes to 1.96))) -> [missing] (J5)

Stage 2

  • [ui] tests/ui-fulldeps/internal-lints/disallowed_pass_by_ref.rs: [missing] -> pass (J0)
  • [ui] tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs: pass -> [missing] (J0)
  • [ui] tests/ui/internal-lints/disallowed_pass_by_ref_self.rs: [missing] -> pass (J1)
  • [ui] tests/ui/internal-lints/rustc_pass_by_value_self.rs: pass -> [missing] (J1)
  • [codegen] tests/codegen-llvm/enum/enum-repr-abi.rs: [missing] -> pass (J6)

Additionally, 96 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 20fe935d50367c0ff8872c2ebfa050c5c99d9201 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. test-i686-gnu-nopt-2: 1h 24m -> 2h 18m (+64.8%)
  2. test-x86_64-mingw-2: 1h 43m -> 2h 44m (+58.6%)
  3. test-x86_64-msvc-1: 1h 44m -> 2h 46m (+58.2%)
  4. dist-loongarch64-musl: 1h 19m -> 2h 4m (+57.2%)
  5. test-x86_64-msvc-ext1: 2h 22m -> 1h 18m (-44.7%)
  6. test-x86_64-gnu-llvm-22-3: 1h 24m -> 1h 59m (+41.0%)
  7. test-i686-gnu-nopt-1: 2h 35m -> 1h 35m (-38.4%)
  8. test-x86_64-mingw-1: 2h 59m -> 1h 55m (-35.5%)
  9. dist-i686-mingw: 51m 29s -> 33m 59s (-34.0%)
  10. test-x86_64-gnu-gcc: 1h 11m -> 1h 35m (+33.9%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#164537 Parser: Clean up parse_expr_dot_or_call_with & simplify `… d0b4379900384f9fe59f8e8cc685b18063ec89c8
(link)
#165481 Separate Primitive::Bool and make #[repr($int)] enums a… a114719db1be05af687fc0a583c948c651ae3644
(link)
#166290 Require the next-solver for unsafe binders 6fc209c9172627d817191b146c1c9a8d55555e0b
(link)
#165865 Move more rustc lint attributes to lint helpers. e029e167bd926e937b1fd7977299947893ebe9ce
(link)
#166221 Unstably implement StaticAllocator on fundamental types 79a471cce4c2dc697e506e07c6fa8de0b3aaf609
(link)

parent commit: 2772402385

In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: @rust-timer triage $SHA $SHA $SHA..., or run @rust-timer triage all to benchmark all rollup members.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (20fe935): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.7% [0.1%, 1.0%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.1%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (secondary 2.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.3% [0.4%, 4.9%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.8% [-0.8%, -0.8%] 1
All ❌✅ (primary) - - 0

Cycles

Results (secondary -1.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.6% [0.5%, 6.7%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.7% [-8.2%, -2.3%] 4
All ❌✅ (primary) - - 0

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 462.881s -> 463.652s (0.17%)
Artifact size: 405.81 MiB -> 406.52 MiB (0.17%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 24, 2026
@jhpratt
jhpratt deleted the rollup-KEoskuu branch November 24, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-allocators Area: Custom and system allocators A-attributes Area: Attributes (`#[…]`, `#![…]`) A-box Area: Our favorite opsem complication A-iterators Area: Iterators A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-slice-vec Area: `[T]` and `Vec<T>` A-str Area: `str` and `String` merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. rollup A PR which is a rollup T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants