Skip to content

Rollup of 19 pull requests#158811

Merged
rust-bors[bot] merged 46 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-Rzb4mH7
Jul 5, 2026
Merged

Rollup of 19 pull requests#158811
rust-bors[bot] merged 46 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-Rzb4mH7

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Contributor

Successful merges:

r? @ghost

Create a similar rollup

RalfJung and others added 30 commits May 3, 2026 10:05
The compiler is removing the `x86-softfloat` [1], thus temporarily add
a patch.

As usual, the patch will eventually make it to the Linux kernel so that
both sides are good.

Cc: Ralf Jung <post@ralfj.de>
Cc: Alice Ryhl <aliceryhl@google.com>
Link: rust-lang#157151 [1]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
The auto-trait branch of the orphan check inspected the unexpanded self
type, so an impl whose self type was a free (lazy) type alias was
rejected even when the alias resolved to an otherwise valid nominal
type, e.g. `unsafe impl Sync for Alias {}` with `type Alias = Local;`.

Expand free alias types before classifying the self type, mirroring the
locality check above. Expansion still reveals genuinely problematic self
types (trait objects, opaque types, type parameters), so those keep
being rejected.
…s a standalone command

- error if RUSTC isn't set, which means it'll fall back to the
  user-installed default (wrong)
- be more specific in `--bless` suggestions that they should use `x test
  tidy`, not tidy directly.
for non-interactive cases, such as CI, this makes it easier to tell what
went wrong without having to interactively debug the problem.
Before this commit, `BlameConstraint` is a bit hard to understand at
first, because of its `ObligationCause` field. In practice,
`BlameConstraint` is just a slimmed down version of an
`OutlivesConstraint` from `Vec<OutlivesConstraint>`.

The artificial `ObligationCause` is only needed in one place. Rather
than having that exception polute the lower level analysis, bubble it up
as much as we can. That way, it becomes clearer what `BlameConstraint`
actually is.

For reference, `ObligationCause` was introdued by 93ab12e, but the
codebase looked quite different back then.
Porting the notes from the stable branch.
…back

Co-authored-by: Vin <betadelphini.py@gmail.com>
All call sites use a static `DropKind` value, and we already have a
dedicated named method for lints. Switch to only use dedicated methods for
consistency.
This enforces the invariant that `size_hint` should always return `(lower_bound(), upper_bound())`.
Leaving the trait in a better state than it previously was.

Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
and just always show diffs by default.
not sure why you'd want to hide them.
…-Simulacrum

Add release notes for 1.96.1

Porting the notes from the stable branch.
…=Mark-Simulacrum

Implement `IntoIterator` for `[&[mut]] Box<[T; N], A>`

Revival of rust-lang#124108
…n-order, r=saethlin

MIR Call terminator: evaluate destination place before arguments

See rust-lang#155680 for context.
Cc @Amanieu @rust-lang/wg-mir-opt

Looking at codegen, the order there seems to be
- `func`
- `dest`
- `args`

However, the order also should not make any semantic difference since evaluating operands and places are read-only operations. It just matters for Miri since while evaluating arguments we set up "protectors" for in-place arguments.
@JonathanBrouwer

Copy link
Copy Markdown
Contributor Author

@bors r+ rollup=never p=5

@rust-bors

rust-bors Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9f3f117 has been approved by JonathanBrouwer

It is now in the queue for this repository.

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

Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
...............................F.................. (50/144)
.................................................. (100/144)
............................................       (144/144)

======== tests/rustdoc-gui/go-to-collapsed-elem.goml ========

[ERROR] line 40
    at `tests/rustdoc-gui/go-to-collapsed-elem.goml` line 21: Error: Node is detached from document: for command `click: "//*[@id='search']//a[@href='../test_docs/struct.Foo.html#method.must_use']"`
    at <file:///checkout/obj/build/x86_64-unknown-linux-gnu/test/rustdoc-gui/doc/test_docs/struct.Foo.html?search=t_use>


<= doc-ui tests done: 143 succeeded, 1 failed, 0 filtered out

Error: ()

@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 Jul 5, 2026
@rust-bors

rust-bors Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 12m 35s
Pushing 3659db0 to main...

@github-actions

github-actions Bot commented Jul 5, 2026

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 1c02d90 (parent) -> 3659db0 (this PR)

Test differences

Show 870 test diffs

Stage 1

  • [ui] tests/ui/lazy-type-alias/auto-trait-impls.rs: [missing] -> pass (J0)
  • [ui] tests/ui/precondition-checks/transmute_copy.rs: [missing] -> pass (J0)
  • [ui] tests/ui/proc-macro/module.rs: ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs))) -> ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs and modules-in-input.rs))) (J0)
  • [ui] tests/ui/proc-macro/modules-in-input.rs: [missing] -> pass (J0)
  • [ui] tests/ui/reborrow/coerce-shared-normalize.rs: [missing] -> pass (J0)
  • [codegen] tests/codegen-llvm/lib-optimizations/transmute_copy.rs: [missing] -> pass (J1)
  • [rustdoc-html] tests/rustdoc-html/reexport/glob-import.rs: [missing] -> pass (J1)
  • [ui (polonius)] tests/ui/lazy-type-alias/auto-trait-impls.rs: [missing] -> pass (J2)
  • [ui (polonius)] tests/ui/precondition-checks/transmute_copy.rs: [missing] -> pass (J2)
  • [ui (polonius)] tests/ui/proc-macro/module.rs: ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs))) -> ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs and modules-in-input.rs))) (J2)
  • [ui (polonius)] tests/ui/proc-macro/modules-in-input.rs: [missing] -> pass (J2)
  • [ui (polonius)] tests/ui/reborrow/coerce-shared-normalize.rs: [missing] -> pass (J2)
  • [codegen] tests/codegen-llvm/lib-optimizations/transmute_copy.rs: [missing] -> ignore (only executed when the pointer width is 64bit) (J3)
  • mem::test_transmute_copy_grow_panics: pass -> [missing] (J10)

Stage 2

  • [ui] tests/ui/lazy-type-alias/auto-trait-impls.rs: [missing] -> pass (J4)
  • [ui] tests/ui/precondition-checks/transmute_copy.rs: [missing] -> pass (J4)
  • [ui] tests/ui/proc-macro/module.rs: ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs))) -> ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs and modules-in-input.rs))) (J4)
  • [ui] tests/ui/proc-macro/modules-in-input.rs: [missing] -> pass (J4)
  • [ui] tests/ui/reborrow/coerce-shared-normalize.rs: [missing] -> pass (J4)
  • [rustdoc-html] tests/rustdoc-html/reexport/glob-import.rs: [missing] -> pass (J5)
  • [codegen] tests/codegen-llvm/lib-optimizations/transmute_copy.rs: [missing] -> pass (J6)
  • mem::test_transmute_copy_grow_panics: pass -> [missing] (J7)
  • [run-make] tests/run-make/compressed-debuginfo-zstd: ignore (ignored if LLVM wasn't build with zstd for ELF section compression or LLVM is not the default codegen backend) -> pass (J8)
  • [codegen] tests/codegen-llvm/lib-optimizations/transmute_copy.rs: [missing] -> ignore (only executed when the pointer width is 64bit) (J9)

Additionally, 846 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 3659db0d3e2cd634c766fcda79ed118eca31a9fd --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. x86_64-gnu-gcc-core-tests: 27m 53s -> 15m 40s (-43.8%)
  2. dist-armv7-linux: 1h 2m -> 1h 29m (+42.9%)
  3. x86_64-gnu: 2h 53m -> 1h 57m (-32.2%)
  4. x86_64-rust-for-linux: 1h 12m -> 52m 28s (-27.2%)
  5. x86_64-msvc-2: 2h 23m -> 1h 45m (-26.7%)
  6. pr-check-2: 56m 22s -> 42m 14s (-25.0%)
  7. dist-ohos-armv7: 58m 27s -> 1h 11m (+22.6%)
  8. pr-check-1: 44m 39s -> 35m 11s (-21.2%)
  9. x86_64-gnu-miri: 1h 58m -> 1h 33m (-21.1%)
  10. dist-x86_64-msvc: 2h 1m -> 1h 35m (-21.0%)
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-timer

Copy link
Copy Markdown
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#158692 Add release notes for 1.96.1 31c5ca62b86ba8f084f84acc0c6955b21b8509f4 (link)
#134021 Implement IntoIterator for [&[mut]] Box<[T; N], A> f9d7b6d57fdd68695ac3dc4833a483c0020f3312 (link)
#155932 MIR Call terminator: evaluate destination place before argu… 35f529e855635403d4a5ffba0e2e5c14c1de4eff (link)
#155989 Update transmute_copy to ub_checks and ?Sized 1a71b93282bff5278680cba36c05c4d1957383ef (link)
#156777 Add -Zautodiff_post_passes flag to limit which llvm passes … a70c30994ae9ad798bb983ab5ca804dd19d32516 (link)
#157151 JSON target specs: remove 'x86-softfloat' compatibility ali… 505ba02d019e17898f576652a56770f9c6bf446a (link)
#157835 expand free alias types in the auto-trait orphan check f7a3657f796c5296dc934eb83c93dc52b5396fa0 (link)
#157857 Stabilize #[my_macro] mod foo; (part of `proc_macro_hygie… 859e2d7575bf3ca9fb09b05056a2412a454b1b9b (link)
#158434 delegation: refactor AST -> HIR lowering b9838ad0990079f7339ea492c1ed80b3479e6ee9 (link)
#158552 make some tidy errors around python easier to understand 157a94a13320c9a740f308a407f264233cb4317e (link)
#158624 borrowck: Introduce BlameConstraint::to_obligation_cause_fr… e0bbe362d8e6162d7458155057b8f20ba9448e81 (link)
#158704 Optimize ArrayChunks::try_rfold with `DoubleEndedIterator… bb358a8b2e735a91b564571031f13ae50a5977c8 (link)
#158711 library: Comment on libtest's dicey internal soundness 4b2218c210bf5f6ec8cbced85a6bbc6d87138eb1 (link)
#158751 rustdoc: Fix crash when trying to inline foreign item which… ca0379c1add4205fe5b0decdca55483ce6d492c7 (link)
#158539 Move SizeHint and IoHandle to core::io f4132eaf2d412959b66cc22b761f97b278645713 (link)
#158659 refactor the normalization in coerce_shared_info 65869e28f2d74f5ac9d09fb5c1a4f54fb2d05dd3 (link)
#158689 resolver: don't use Finalize when resolving visibilities … 57a31e04bd4973ec01757da39a91188b300d2a7d (link)
#158698 Update TypeVisitable implementation 4fad40b8f9c5bbbc2872b9ff1b13a7eedd6da170 (link)
#158706 Tweaks to MIR building scope API 13f82c06856e5c874b5a6f5b04a9978b11e87979 (link)

previous master: 1c02d9026c

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (3659db0): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary 2.3%, secondary -4.3%)

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

mean range count
Regressions ❌
(primary)
11.1% [11.1%, 11.1%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.1% [-3.0%, -1.2%] 2
Improvements ✅
(secondary)
-4.3% [-5.8%, -2.7%] 2
All ❌✅ (primary) 2.3% [-3.0%, 11.1%] 3

Cycles

Results (secondary -15.4%)

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)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-15.4% [-17.6%, -13.3%] 2
All ❌✅ (primary) - - 0

Binary size

Results (primary -0.0%, secondary 0.0%)

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

mean range count
Regressions ❌
(primary)
0.1% [0.0%, 0.1%] 2
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
-0.1% [-0.3%, -0.0%] 4
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.0% [-0.3%, 0.1%] 6

Bootstrap: 490.801s -> 491.532s (0.15%)
Artifact size: 388.97 MiB -> 388.93 MiB (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-testsuite Area: The testsuite used to check the correctness of rustc A-tidy Area: The tidy tool merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure 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-release Relevant to the release subteam, 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.