Skip to content

Rollup of 12 pull requests#152006

Merged
rust-bors[bot] merged 31 commits intorust-lang:mainfrom
JonathanBrouwer:rollup-TXHXPNU
Feb 3, 2026
Merged

Rollup of 12 pull requests#152006
rust-bors[bot] merged 31 commits intorust-lang:mainfrom
JonathanBrouwer:rollup-TXHXPNU

Conversation

@JonathanBrouwer
Copy link
Contributor

Successful merges:

r? @ghost

Create a similar rollup

estebank and others added 30 commits January 15, 2026 20:39
Makes the use expressions significantly shorter.
So that `pub-priv1.rs` test does not have to (ab)use the `aux-crate`
directive for this purpose.

This is very edge-casey so I don't think we should document this in
rustc-dev-guide. If someone needs to do this they will look at the code
and easily find the functionality.

This is a bit hacky since `--extern priv:pm.rs` is not valid, but we can
make our directives work however we want. And I think this is a fine
pragmatic approach. Doing it "the right way" would be a lot of work for
not much gain. Plus, that work can be done incrementally in small steps
in the future if wanted.
It doesn't use `self`, which means it doesn't need to be part of the
`QueryContext` trait; we can just call `extract` directly where
necessary.
Various `QueryStackFrame` variables are called `query`; `frame` is a
better name. And various `QueryInfo` variables are called `frame`;
`info` is a better name.

This eliminates some confusing `query.query()` occurrences, which is a
good sign, and some `frame.query` occurrences become `info.frame`.
Putting `+ 'tcx` on the `QueryDispatcher` trait lets a few other places
be simplified.
It's defined and used in `rustc_query_impl`; `rustc_query_system`
doesn't need it. So it can just be an inherent method on `QueryCtxt`.
Export globals via a `doc(hidden)` module. In test code, use the globals
from `realstd` so that they are properly initialized.
The new ambiguities are reported when the import's visibility is ambiguous and may depend on the resolution/expansion order.
resolve: Report more visibility-related early resolution ambiguities for imports

The new ambiguities are reported when the import's visibility is ambiguous and may depend on the resolution/expansion order.

Detailed description: rust-lang#149596 (comment).
…thar

compiletest: Support `--extern` modifiers with `proc-macro` directive

So that the `src/tools/compiletest/src/directives/auxiliary/tests.rs` test does not have to (ab)use the `aux-crate` directive for this purpose.

This is very edge-casey so I don't think we should document this in rustc-dev-guide. Mentioning it will confuse more than it helps. If someone needs to do this they will look at the code and easily find the functionality.

This is a bit hacky since `--extern priv:pm.rs` is not valid, but we can make our directives work however we want. And I think this is a fine pragmatic approach. Doing it "the right way" would be a lot of work for not much gain. Plus, that work can be done incrementally in small steps in the future if wanted.

r? @Zalathar

---

Follow-up to:

- rust-lang#151353
- rust-lang#151670

### Unblocks:
- rust-lang#151691, because without this fix that test fails (see rust-lang#151691 (comment))
…rcote

Use `#![feature(adt_const_params)]` for static query flags

As suggested by rust-lang#151633 (comment), this replaces multiple clunky const booleans with a single const struct, which is a bit nicer.

This should also make it easier to experiment with statically resolving other flags, like `eval_always`.

There are currently no other compiler crates using `feature(adt_const_params)`, so hopefully it's mature enough for a simple use-case like this one.
…ianne

Use default field values in a few more cases

Makes the use expressions significantly shorter.
…-relate, r=lcnr

regression test for alias-relate changes in lub

r? @lcnr
Add inline syntax for diagnostic messages

This PR adds the new inline diagnostics syntax needed for rust-lang#151366.
The syntax itself is briefly described in the MCP: rust-lang/compiler-team#959

To test these changes:
* I added quite a few uitests
* I converted the first crate `rustc_attr_parsing` to the new syntax in a separate PR: rust-lang#151944

r? @Kivooeo
explain why we dont skip some of this work when there are field projections

Perf says it doesn't help 🤷
…int-spans, r=Kivooeo

Skip overlapping spans in argument error suggestions

Fixes rust-lang#151607
…thar

Query cleanups

A few small cleanups in the query system.

r? @Zalathar
…r=jhpratt

Fix uninitialized UEFI globals in tests

Export globals via a `doc(hidden)` module. In test code, use the globals from `realstd` so that they are properly initialized.

CC @Ayush1325
@Zalathar
Copy link
Member

Zalathar commented Feb 3, 2026

GitHub says the incident is resolved; let's try again.

@bors retry p=1001

@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 Feb 3, 2026
@Zalathar
Copy link
Member

Zalathar commented Feb 3, 2026

@bors p=1001

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

rust-bors bot commented Feb 3, 2026

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 8m 7s
Pushing 5ac8ece to main...

@rust-bors rust-bors bot merged commit 5ac8ece into rust-lang:main Feb 3, 2026
12 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

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 f60a0f1 (parent) -> 5ac8ece (this PR)

Test differences

Show 1428 test diffs

Stage 0

  • directives::auxiliary::tests::test_proc_macro_value_no_modifiers: [missing] -> pass (J3)
  • directives::auxiliary::tests::test_proc_macro_value_with_modifiers: [missing] -> pass (J3)

Stage 1

  • [ui] tests/ui-fulldeps/session-diagnostic/diagnostic-derive-inline.rs: [missing] -> ignore (ignored when the bootstrapping stage is stage1) (J2)
  • [ui] tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive-inline.rs: [missing] -> ignore (ignored when the bootstrapping stage is stage1) (J2)
  • [ui] tests/ui/argument-suggestions/disjoint-spans-issue-151607.rs: [missing] -> pass (J2)
  • [ui] tests/ui/imports/ambiguous-import-visibility-macro.rs: [missing] -> pass (J2)
  • [ui] tests/ui/imports/ambiguous-import-visibility-module.rs: [missing] -> pass (J2)
  • [ui] tests/ui/imports/ambiguous-import-visibility.rs: [missing] -> pass (J2)
  • [ui] tests/ui/traits/next-solver/generalize/relate-alias-in-lub.rs#next: [missing] -> pass (J2)
  • [ui] tests/ui/traits/next-solver/generalize/relate-alias-in-lub.rs#old: [missing] -> pass (J2)

Stage 2

  • [ui] tests/ui-fulldeps/session-diagnostic/diagnostic-derive-inline.rs: [missing] -> ignore (ignored when the release channel is stable) (J0)
  • [ui] tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive-inline.rs: [missing] -> ignore (ignored when the release channel is stable) (J0)
  • [ui] tests/ui/argument-suggestions/disjoint-spans-issue-151607.rs: [missing] -> pass (J1)
  • [ui] tests/ui/imports/ambiguous-import-visibility-macro.rs: [missing] -> pass (J1)
  • [ui] tests/ui/imports/ambiguous-import-visibility-module.rs: [missing] -> pass (J1)
  • [ui] tests/ui/imports/ambiguous-import-visibility.rs: [missing] -> pass (J1)
  • [ui] tests/ui/traits/next-solver/generalize/relate-alias-in-lub.rs#next: [missing] -> pass (J1)
  • [ui] tests/ui/traits/next-solver/generalize/relate-alias-in-lub.rs#old: [missing] -> pass (J1)
  • [ui] tests/ui-fulldeps/session-diagnostic/diagnostic-derive-inline.rs: [missing] -> pass (J4)
  • [ui] tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive-inline.rs: [missing] -> pass (J4)

Additionally, 1408 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 5ac8ecea36e7548534e0bc3d4aa1c12bd4908566 --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. dist-x86_64-apple: 6335.5s -> 7316.1s (+15.5%)
  2. dist-ohos-x86_64: 4974.1s -> 4261.0s (-14.3%)
  3. aarch64-apple: 9647.4s -> 10901.4s (+13.0%)
  4. x86_64-gnu-llvm-20: 4636.5s -> 4147.1s (-10.6%)
  5. x86_64-gnu-llvm-21-3: 6972.4s -> 6322.6s (-9.3%)
  6. x86_64-gnu-miri: 4582.0s -> 4975.2s (+8.6%)
  7. x86_64-mingw-1: 9359.9s -> 10135.2s (+8.3%)
  8. armhf-gnu: 5404.5s -> 4963.7s (-8.2%)
  9. dist-x86_64-msvc: 7262.2s -> 6693.4s (-7.8%)
  10. x86_64-gnu-distcheck: 8330.4s -> 7679.5s (-7.8%)
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.

@jhpratt
Copy link
Member

jhpratt commented Feb 3, 2026

Seems to be working as expected now.

@bors treeopen

@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#149596 resolve: Report more visibility-related early resolution am… fc75a6d927d1ea2bfbc02a6fe00d98e5b40a5e4b (link)
#151172 Use default field values in a few more cases c1f389b3b136fc61f87d6a6998d3bd4ccfebd2d7 (link)
#151695 compiletest: Support --extern modifiers with proc-macro 53dfb5e8dc2e25625b468c060e8a41a83b129630 (link)
#151825 more float constants 2a7b7e6828ce2e2854716035da819620426871e2 (link)
#151870 regression test for alias-relate changes in lub 8880217fdebbd88a4979f5d672721819fc3b0a86 (link)
#151872 Add inline syntax for diagnostic messages 263b6ab7b24ecd5c9ef6b5e589daf6dbae06049b (link)
#151902 explain why we dont skip some of this work when there are f… 80fc3d8919af6bf17593bf483e9f09a9b84c2f9a (link)
#151909 Skip overlapping spans in argument error suggestions 4394655245256eb3b0090a50f4462cd2ded481af (link)
#151938 Use #![feature(adt_const_params)] for static query flags 70f96b547dcd48b025ad99408dc57883b9784508 (link)
#151978 Query cleanups 174ad5533a505830f47e3aaec57a2e4b13f09b70 (link)
#151979 Fix uninitialized UEFI globals in tests 0bef0f35351a5ed855ed4d4a829d8d8c6b33236e (link)
#151992 Port #[rustc_hidden_type_of_opaque] to attribute parser 38df8605bbf72d91bc4eba9b4d03961e2fba7a2a (link)

previous master: f60a0f1bcc

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-bors
Copy link
Contributor

rust-bors bot commented Feb 3, 2026

Tree is now open for merging.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5ac8ece): comparison URL.

Overall result: ❌ regressions - 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)
1.7% [1.7%, 1.7%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 2.2%, secondary -2.3%)

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

mean range count
Regressions ❌
(primary)
5.4% [5.4%, 5.4%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.9% [-0.9%, -0.9%] 1
Improvements ✅
(secondary)
-2.3% [-2.3%, -2.3%] 1
All ❌✅ (primary) 2.2% [-0.9%, 5.4%] 2

Cycles

Results (primary 3.4%, secondary 1.5%)

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

mean range count
Regressions ❌
(primary)
3.4% [3.4%, 3.4%] 1
Regressions ❌
(secondary)
3.7% [2.4%, 4.6%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.2% [-5.6%, -2.9%] 3
All ❌✅ (primary) 3.4% [3.4%, 3.4%] 1

Binary size

Results (primary -0.0%, secondary -0.1%)

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

Bootstrap: 470.454s -> 474.688s (0.90%)
Artifact size: 397.65 MiB -> 397.75 MiB (0.03%)

@Kobzol
Copy link
Member

Kobzol commented Feb 3, 2026

@rust-timer build fc75a6d

(just testing perfbot)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (fc75a6d): comparison URL.

Overall result: no relevant changes - no action needed

Instruction count

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

Max RSS (memory usage)

Results (primary 2.4%, secondary -3.3%)

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

mean range count
Regressions ❌
(primary)
4.0% [2.7%, 5.3%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.7% [-0.7%, -0.7%] 1
Improvements ✅
(secondary)
-3.3% [-3.3%, -3.3%] 1
All ❌✅ (primary) 2.4% [-0.7%, 5.3%] 3

Cycles

Results (secondary 2.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)
2.8% [2.2%, 3.8%] 7
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

Results (primary 0.0%, secondary 0.1%)

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

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 10
Regressions ❌
(secondary)
0.1% [0.0%, 0.1%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.0%] 10

Bootstrap: 470.454s -> 475.329s (1.04%)
Artifact size: 397.65 MiB -> 397.69 MiB (0.01%)

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiletest Area: The compiletest test runner 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 A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.