Skip to content

Conversation

@JonathanBrouwer
Copy link
Contributor

Successful merges:

r? @ghost

Create a similar rollup

jakos-sec and others added 16 commits January 23, 2026 11:55
Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of
non-essential deref magic.
Based on earlier work by León Orell Valerian Liehr.

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
Signed-off-by: Usman Akinyemi <uniqueusman@archlinux>
When encountering a call to `iter` that should have been `into_iter` and vice-versa, provide a structured suggestion:

```
error[E0271]: type mismatch resolving `<IntoIter<{integer}, 3> as IntoIterator>::Item == &{integer}`
  --> $DIR/into_iter-when-iter-was-intended.rs:5:37
   |
LL |     let _a = [0, 1, 2].iter().chain([3, 4, 5].into_iter());
   |                               ----- ^^^^^^^^^^^^^^^^^^^^^ expected `&{integer}`, found integer
   |                               |
   |                               required by a bound introduced by this call
   |
note: the method call chain might not have had the expected associated types
  --> $DIR/into_iter-when-iter-was-intended.rs:5:47
   |
LL |     let _a = [0, 1, 2].iter().chain([3, 4, 5].into_iter());
   |                                     --------- ^^^^^^^^^^^ `IntoIterator::Item` is `{integer}` here
   |                                     |
   |                                     this expression has type `[{integer}; 3]`
note: required by a bound in `std::iter::Iterator::chain`
  --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
help: consider not consuming the `[{integer}, 3]` to construct the `Iterator`
   |
LL -     let _a = [0, 1, 2].iter().chain([3, 4, 5].into_iter());
LL +     let _a = [0, 1, 2].iter().chain([3, 4, 5].iter());
   |
```
Recover from struct literals with placeholder or empty path

Based on earlier work by León Orell Valerian Liehr.
…r=petrochenkov

Remove uses of `&mut CmResolver`

Before rust-lang#148329, using CmResolver in closures was not possible when trying to reborrow. This pr changes uses of `&mut CmResolver` into a bare `CmResolver`, to keep the code clean (and to not have `&mut &mut Resolver`)

r? @petrochenkov
…yotamofek

Rustdoc performance improvements

A few things I had sitting around for a while. Let's check what perf says about them

r? @yotamofek
some more rustc_borrowck cleanups

r? lcnr
Remove `Deref<Target = TyCtxt>` from `QueryCtxt`

Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
Suggest changing `iter`/`into_iter` when the other was meant

When encountering a call to `iter` that should have been `into_iter` and vice-versa, provide a structured suggestion:

```
error[E0271]: type mismatch resolving `<IntoIter<{integer}, 3> as IntoIterator>::Item == &{integer}`
  --> $DIR/into_iter-when-iter-was-intended.rs:5:37
   |
LL |     let _a = [0, 1, 2].iter().chain([3, 4, 5].into_iter());
   |                               ----- ^^^^^^^^^^^^^^^^^^^^^ expected `&{integer}`, found integer
   |                               |
   |                               required by a bound introduced by this call
   |
note: the method call chain might not have had the expected associated types
  --> $DIR/into_iter-when-iter-was-intended.rs:5:47
   |
LL |     let _a = [0, 1, 2].iter().chain([3, 4, 5].into_iter());
   |                                     --------- ^^^^^^^^^^^ `IntoIterator::Item` is `{integer}` here
   |                                     |
   |                                     this expression has type `[{integer}; 3]`
note: required by a bound in `std::iter::Iterator::chain`
  --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
help: consider not consuming the `[{integer}, 3]` to construct the `Iterator`
   |
LL -     let _a = [0, 1, 2].iter().chain([3, 4, 5].into_iter());
LL +     let _a = [0, 1, 2].iter().chain([3, 4, 5].iter());
   |
```

Finish addressing the original case in rust-lang#68095. Only the case of chaining a `Vec` or `[]` is left unhandled.
@rust-bors rust-bors bot added the rollup A PR which is a rollup label Jan 26, 2026
@rustbot rustbot added A-CI Area: Our Github Actions CI A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-testsuite Area: The testsuite used to check the correctness of rustc 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-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-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 Jan 26, 2026
@JonathanBrouwer
Copy link
Contributor Author

@bors r+ rollup=never p=5

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 26, 2026

📌 Commit 9ad4ae8 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 Jan 26, 2026
@JonathanBrouwer
Copy link
Contributor Author

@bors retry

@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 Jan 26, 2026
@rust-bors

This comment has been minimized.

@rust-log-analyzer
Copy link
Collaborator

A job failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
##[error]Could not find a part of the path 'D:\a'.

@tgross35
Copy link
Contributor

@bors retry

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 27, 2026

❗ You can only retry pull requests that are approved and have a previously failed auto build.

Hint: There is currently a pending auto build on this PR. To cancel it, run @bors cancel.

@tgross35
Copy link
Contributor

Whoops I read that wrong, RLA has been a bit behind today.

Anyway we got the official "resolved" note #t-infra > github status @ 💬

@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 Jan 27, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 27, 2026

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 54m 49s
Pushing b3cda16 to main...

@rust-bors rust-bors bot merged commit b3cda16 into rust-lang:main Jan 27, 2026
14 of 23 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Jan 27, 2026
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#148187 Remove uses of &mut CmResolver 43578186b4613a7a2be564053a8f302cd2cd2295 (link)
#151290 Recover from struct literals with placeholder or empty path 7d1b884f6f33552d081c4da33d0ad63f35dea4d0 (link)
#151368 Rustdoc performance improvements c538f993874f26fc28b93bbb9dd62719c646b414 (link)
#151374 some more rustc_borrowck cleanups 80945d70891089fd5de39a9193abb72883c1d6f0 (link)
#151536 Fix sanitizer target builds on CI d08f0d59994784448a8c643f92dc0d356a13ff3a (link)
#151626 Remove Deref<Target = TyCtxt> from QueryCtxt 82df68ea3a9e5885402b920d482acd60a59d9e8f (link)
#151661 Suggest changing iter/into_iter when the other was meant e5fefa10522d8b99f695aa3687561757d93f33d2 (link)

previous master: 474276961f

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

@github-actions
Copy link
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 4742769 (parent) -> b3cda16 (this PR)

Test differences

Show 86 test diffs

Stage 0

  • errors::verify_parse_struct_literal_body_without_path_late_191: [missing] -> pass (J0)
  • errors::verify_parse_struct_literal_placeholder_path_190: [missing] -> pass (J0)

Stage 1

  • [ui] tests/ui/associated-types/normalization-generality-2.rs: pass -> [missing] (J0)
  • [ui] tests/ui/associated-types/normalization-generality-2.rs#current: [missing] -> pass (J0)
  • [ui] tests/ui/associated-types/normalization-generality-2.rs#next: [missing] -> pass (J0)
  • [ui] tests/ui/associated-types/normalization-generality.rs: pass -> [missing] (J0)
  • [ui] tests/ui/associated-types/normalization-generality.rs#current: [missing] -> pass (J0)
  • [ui] tests/ui/associated-types/normalization-generality.rs#next: [missing] -> pass (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/issue-88446.rs: pass -> [missing] (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/issue-88446.rs#current: [missing] -> pass (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/issue-88446.rs#next: [missing] -> pass (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-89436.rs: pass -> [missing] (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-89436.rs#current: [missing] -> pass (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-89436.rs#next: [missing] -> pass (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-90638.rs: pass -> [missing] (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-90638.rs#current: [missing] -> pass (J0)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-90638.rs#next: [missing] -> pass (J0)
  • [ui] tests/ui/iterators/into_iter-when-iter-was-intended.rs: [missing] -> pass (J0)
  • [ui] tests/ui/nll/issue-112604-closure-output-normalize.rs: pass -> [missing] (J0)
  • [ui] tests/ui/nll/issue-112604-closure-output-normalize.rs#current: [missing] -> pass (J0)
  • [ui] tests/ui/nll/issue-112604-closure-output-normalize.rs#next: [missing] -> pass (J0)
  • [ui] tests/ui/parser/struct-lit-placeholder-or-empty-path.rs: [missing] -> pass (J0)
  • [ui] tests/ui/suggestions/struct-lit-placeholder-path.rs: [missing] -> pass (J0)
  • errors::verify_parse_struct_literal_body_without_path_late_191: [missing] -> pass (J2)
  • errors::verify_parse_struct_literal_placeholder_path_190: [missing] -> pass (J2)

Stage 2

  • [ui] tests/ui/associated-types/normalization-generality-2.rs: pass -> [missing] (J1)
  • [ui] tests/ui/associated-types/normalization-generality-2.rs#current: [missing] -> pass (J1)
  • [ui] tests/ui/associated-types/normalization-generality-2.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/associated-types/normalization-generality.rs: pass -> [missing] (J1)
  • [ui] tests/ui/associated-types/normalization-generality.rs#current: [missing] -> pass (J1)
  • [ui] tests/ui/associated-types/normalization-generality.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/issue-88446.rs: pass -> [missing] (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/issue-88446.rs#current: [missing] -> pass (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/issue-88446.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-89436.rs: pass -> [missing] (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-89436.rs#current: [missing] -> pass (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-89436.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-90638.rs: pass -> [missing] (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-90638.rs#current: [missing] -> pass (J1)
  • [ui] tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-90638.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/iterators/into_iter-when-iter-was-intended.rs: [missing] -> pass (J1)
  • [ui] tests/ui/nll/issue-112604-closure-output-normalize.rs: pass -> [missing] (J1)
  • [ui] tests/ui/nll/issue-112604-closure-output-normalize.rs#current: [missing] -> pass (J1)
  • [ui] tests/ui/nll/issue-112604-closure-output-normalize.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/parser/struct-lit-placeholder-or-empty-path.rs: [missing] -> pass (J1)
  • [ui] tests/ui/suggestions/struct-lit-placeholder-path.rs: [missing] -> pass (J1)

Additionally, 40 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 b3cda168c8afd5c4240a9477f6a7f54e70e2589a --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. aarch64-apple: 7889.8s -> 13681.7s (+73.4%)
  2. x86_64-gnu-gcc: 3852.8s -> 6434.5s (+67.0%)
  3. dist-apple-various: 5157.4s -> 3980.2s (-22.8%)
  4. dist-aarch64-apple: 8113.2s -> 6332.8s (-21.9%)
  5. dist-ohos-aarch64: 5537.9s -> 4326.4s (-21.9%)
  6. dist-android: 1572.2s -> 1271.9s (-19.1%)
  7. dist-loongarch64-linux: 5484.6s -> 4555.3s (-16.9%)
  8. dist-powerpc64-linux-gnu: 5157.5s -> 4294.5s (-16.7%)
  9. dist-x86_64-netbsd: 4781.4s -> 4005.2s (-16.2%)
  10. dist-x86_64-apple: 7941.2s -> 6892.5s (-13.2%)
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.

@tgross35
Copy link
Contributor

Yay!
@bors treeclosed-

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 27, 2026

Tree is now open for merging.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b3cda16): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

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
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.1%] 4
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -2.0%, secondary -1.8%)

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)
-2.0% [-2.0%, -2.0%] 1
Improvements ✅
(secondary)
-1.8% [-1.8%, -1.8%] 1
All ❌✅ (primary) -2.0% [-2.0%, -2.0%] 1

Cycles

Results (primary -6.4%, secondary -3.9%)

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)
-6.4% [-9.5%, -2.3%] 9
Improvements ✅
(secondary)
-3.9% [-4.5%, -3.5%] 4
All ❌✅ (primary) -6.4% [-9.5%, -2.3%] 9

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 473.418s -> 472.506s (-0.19%)
Artifact size: 383.64 MiB -> 383.60 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-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup 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-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.