Nicholas Nethercote
e9288e7e90
Remove last remnants of rustc_query_system.
...
At this point module `ich` is the only thing left.
2026-02-16 22:56:47 +11:00
Nicholas Nethercote
8d56cfe4c3
Move QuerySideEffect.
...
From `rustc_query_system` to `rustc_middle.` I put it in `graph.rs`,
it's one of two files that uses `QuerySideEffect` and seemed as good as
anywhere else.
2026-02-16 20:04:55 +11:00
bors
fef627b1eb
Auto merge of #152636 - nnethercote:big-cleanups, r=Zalathar
...
Big query system cleanups
Recent PRs have moved a lot of code from `rustc_query_system` to `rustc_middle` and `rustc_query_impl`, where this code now has access to `TyCtxt`, e.g. rust-lang/rust#152419 , rust-lang/rust#152516 . As a result, a lot of abstraction and indirection that existed to work around this limitation is no longer necessary. This PR removes a lot of it.
r? @Zalathar
2026-02-16 04:20:25 +00:00
bors
75b9d89c68
Auto merge of #151380 - ShoyuVanilla:shallow-resolve-to-root-var, r=lcnr
...
Shallow resolve ty and const vars to their root vars
Continuation of https://github.com/rust-lang/rust/pull/147193
2026-02-15 03:04:28 +00:00
Nicholas Nethercote
32e6a1a0ab
Remove QueryContext.
...
`rustc_query_system` has been reduced so much that it's no longer
needed. This avoids a lot of indirection and abstraction.
2026-02-15 13:07:35 +11:00
Nicholas Nethercote
ed091aaf5d
Move rustc_query_system::query::dep_graph to rustc_middle.
...
Most of the files within the `dep_graph` module can be moved wholesale
into `rustc_middle`. But two of them (`mod.rs` and `dep_node.rs`) have
the same name as existing files in `rustc_middle`, so for those I just
copied the contents into the existing files.
The commit also moves `QueryContext` and `incremental_verify_ich*`
because they are tightly intertwined with the dep graph code. And a
couple of error structs moved as well.
2026-02-14 18:46:05 +11:00
Nicholas Nethercote
8b0dc1ece0
Move rustc_query_system::query::job to rustc_middle.
...
This includes the types `QueryInfo`, `QueryJob`, `QueryJobId`,
`QueryWaiter`, `QueryLatch`, and `QueryLatchInfo`.
`CycleError` and `QueryStack*` had to come along too, due to type
interdependencies. The `QueryStack*` types are put into a new submodule
`rustc_middle::query::stack`.
2026-02-14 18:33:13 +11:00
bors
605f49b274
Auto merge of #152506 - Urgau:rollup-MlGAszj, r=Urgau
...
Rollup of 7 pull requests
Successful merges:
- rust-lang/rust#152505 (Sync relnotes for stable 1.93.1)
- rust-lang/rust#137487 (Stabilize `assert_matches`)
- rust-lang/rust#152281 (borrowck: suggest `&mut *x` for pattern reborrows)
- rust-lang/rust#151142 (Support ADT types in type info reflection)
- rust-lang/rust#152477 (rustc-dev-guide subtree update)
- rust-lang/rust#152488 (allow `deprecated(since = "CURRENT_RUSTC_VERSION")`)
- rust-lang/rust#152491 (Remove unused `fluent-syntax` dependency from tidy)
2026-02-12 03:44:50 +00:00
Jonathan Brouwer
41de246f61
Remove unused fluent-syntax dependency from tidy
2026-02-11 16:14:30 +01:00
Matthias Krüger
2194af9680
Rollup merge of #152419 - nnethercote:mv-more-query-system-code, r=Zalathar
...
Move more query system code
Towards the goal of eliminating `rustc_query_system`, this commit moves some code from `rustc_query_system` to `rustc_middle` and `rustc_query_impl`, and from `rustc_middle` to `rustc_query_impl`.
r? @Zalathar
2026-02-11 13:48:46 +01:00
Shoyu Vanilla
1f53258660
Bump ena
2026-02-11 17:05:50 +09:00
Jana Dönszelmann
00fef81964
Port rustc_expected_cgu_reuse to the new attribute parser
2026-02-10 10:10:38 +01:00
Nicholas Nethercote
a34317e5a5
Move report_cycle.
...
From `rustc_query_system::query::job` to `rustc_query_impl::job`.
2026-02-10 18:46:05 +11:00
Nicholas Nethercote
923de04f6a
Move rustc_middle::query::values to rustc_query_impl.
...
Because all uses are now in `rustc_query_impl`. This was made possible
by the previous commit. Less code in `rustc_middle`, hooray.
2026-02-10 18:46:05 +11:00
Nicholas Nethercote
066a935b0c
Move parts of rustc_query_system::query::job to rustc_middle::job.
...
The latter is a new module.
As well as the code motion, some other changes were required.
- `QueryJobId` methods became free functions so they could move while
`QueryJobId` itself stayed put. This was so `QueryMap` and
`QueryJobInfo` could be moved.
- Some visibilities in `rustc_query_system` required changing.
- `collect_active_jobs_from_all_queries` is no longer required in `trait
QueryContext`.
2026-02-10 16:59:33 +11:00
Jonathan Brouwer
f35d734d3f
Remove rustc_fluent_macro
2026-02-07 19:34:21 +01:00
Jonathan Brouwer
c814f76c06
Convert to inline diagnostics in rustc_lint
2026-02-07 19:34:21 +01:00
bors
c7f5f3e0d5
Auto merge of #152294 - JonathanBrouwer:rollup-ygNTxe8, r=JonathanBrouwer
...
Rollup of 3 pull requests
Successful merges:
- rust-lang/rust#149960 (add `unreachable_cfg_select_predicates` lint)
- rust-lang/rust#152168 (Port `rustc_intrinsic_const_stable_indirect` and `rustc_intrinsic` to the new attribute parser)
- rust-lang/rust#152289 (Also duplicate `#[expect]` attribute in `#[derive]`-ed code)
2026-02-07 15:20:28 +00:00
Jonathan Brouwer
972a53167c
Rollup merge of #149960 - folkertdev:cfg-select-unreachable-lint, r=JonathanBrouwer
...
add `unreachable_cfg_select_predicates` lint
tracking issue: https://github.com/rust-lang/rust/issues/115585
Split out from https://github.com/rust-lang/rust/pull/149783 . This lint is emitted on branches of a `cfg_select!` that are statically known to be unreachable. The lint is only emitted when the feature is enabled, so this change specifically does not need an FCP, and the lint will be stabilized alongside the feature (see https://github.com/rust-lang/rust/pull/149783#issuecomment-3648000286 ).
2026-02-07 16:04:40 +01:00
Jonathan Brouwer
9a114c686f
Convert to inline diagnostics in rustc_parse
2026-02-07 10:30:40 +01:00
Folkert de Vries
a6bd7cc54e
make the lint more sophisticated
2026-02-07 02:19:43 +01:00
Jonathan Brouwer
a66d0f8598
Rollup merge of #152186 - GuillaumeGomez:inline-diag-rustc_const_eval, r=JonathanBrouwer
...
Convert to inline diagnostics in `rustc_const_eval`
Part of rust-lang/rust#151366 .
r? @JonathanBrouwer
2026-02-07 01:18:53 +01:00
Jonathan Brouwer
4fa1cdb455
Rollup merge of #152126 - GuillaumeGomez:inline-diag-rustc_mir_build, r=JonathanBrouwer
...
Convert to inline diagnostics in `rustc_mir_build`
Part of https://github.com/rust-lang/rust/issues/151366 .
r? @JonathanBrouwer
2026-02-07 01:18:53 +01:00
Guillaume Gomez
c6829020b0
Convert to inline diagnostics in rustc_const_eval
2026-02-06 22:55:58 +01:00
Guillaume Gomez
885a8081c4
Convert to inline diagnostics in rustc_mir_build
2026-02-06 22:21:27 +01:00
Jonathan Brouwer
ea43035654
Convert to inline diagnostics in rustc_passes
2026-02-06 13:31:54 +01:00
bors
035b01b794
Auto merge of #152213 - JonathanBrouwer:rollup-trjCgZZ, r=JonathanBrouwer
...
Rollup of 13 pull requests
Successful merges:
- rust-lang/rust#152191 (Convert to inline diagnostics in `rustc_hir_analysis`)
- rust-lang/rust#149329 (Mark match arms in try and for as being from desugarings.)
- rust-lang/rust#151474 (Minor structural improvements)
- rust-lang/rust#152107 (Convert to inline diagnostics in `rustc_borrowck`)
- rust-lang/rust#152117 (Convert to inline diagnostics in `rustc_trait_selection`)
- rust-lang/rust#152136 (Consolidate type const checks on `tcx.is_type_const`)
- rust-lang/rust#152140 (Hard code the error code registry for custom drivers)
- rust-lang/rust#152155 (Fix typos in riscv64a23-unknown-linux-gnu.md)
- rust-lang/rust#152170 (Port `rustc_effective_visibility` to the new attribute parser)
- rust-lang/rust#152182 (update compiler stable backport zulip msg)
- rust-lang/rust#152184 (Port rustc_abi to the attribute parser)
- rust-lang/rust#152195 (update openmp/offload builds to LLVM 22, Part 1)
- rust-lang/rust#152202 (chore: clearify tidy's error message)
Failed merges:
- rust-lang/rust#151744 (fix refining_impl_trait suggestion with return_type_notation)
- rust-lang/rust#152212 (Port some attributes to the attr parser)
2026-02-06 09:12:28 +00:00
Jonathan Brouwer
771fa578bf
Rollup merge of #152117 - JonathanBrouwer:convert_trait_selection2, r=GuillaumeGomez
...
Convert to inline diagnostics in `rustc_trait_selection`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-06 10:06:43 +01:00
Jonathan Brouwer
65a1d9708d
Rollup merge of #152107 - JonathanBrouwer:convert_borrowck, r=lqd
...
Convert to inline diagnostics in `rustc_borrowck`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-06 10:06:43 +01:00
Jonathan Brouwer
57aae94bed
Convert to inline diagnostics in rustc_hir_analysis
2026-02-06 10:05:35 +01:00
Nicholas Nethercote
09eb497396
Remove Resolver::create_stable_hashing_context.
...
It only has two uses. We can instead use `with_stable_hashing_context`,
which has more than 30 uses.
2026-02-06 09:18:18 +11:00
Jonathan Brouwer
55d1ba12d9
Convert to inline diagnostics in rustc_trait_selection
2026-02-05 16:58:59 +01:00
Jonathan Brouwer
dd61998e74
Convert to inline diagnostics in rustc_borrowck
2026-02-05 16:55:55 +01:00
Jonathan Brouwer
3c61714cc3
Rollup merge of #152121 - JonathanBrouwer:convert_builtin_macros, r=lqd
...
Convert to inline diagnostics in `rustc_builtin_macros`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-05 12:17:01 +01:00
Jonathan Brouwer
4d535f5642
Rollup merge of #152119 - JonathanBrouwer:convert_middle, r=jdonszelmann
...
Convert to inline diagnostics in `rustc_middle`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-05 12:17:01 +01:00
Jonathan Brouwer
62de21f0ad
Rollup merge of #152109 - JonathanBrouwer:convert_errors, r=lqd
...
Convert to inline diagnostics in `rustc_errors`
For rust-lang/rust#151366
r? @jdonszelmann
2026-02-05 12:17:00 +01:00
Jonathan Brouwer
3421938bb8
Rollup merge of #152106 - JonathanBrouwer:convert_ast_passes, r=jdonszelmann
...
Convert to inline diagnostics in `rustc_ast_passes`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-05 12:16:59 +01:00
Jonathan Brouwer
e55eb45661
Convert to inline diagnostics in rustc_errors
2026-02-05 12:14:48 +01:00
Jonathan Brouwer
67c6cd99b7
Convert to inline diagnostics in rustc_pattern_analysis
2026-02-05 12:13:25 +01:00
Jonathan Brouwer
0da9476010
Convert to inline diagnostics in rustc_ast_passes
2026-02-05 12:08:42 +01:00
Jonathan Brouwer
46753b1b43
Convert to inline diagnostics in rustc_middle
2026-02-05 12:02:02 +01:00
Jonathan Brouwer
d40e60fc44
Convert to inline diagnostics in rustc_builtin_macros
2026-02-05 12:00:56 +01:00
Jonathan Brouwer
dd05e03db1
Rollup merge of #152118 - JonathanBrouwer:convert_codegen_ssa, r=jdonszelmann
...
Convert to inline diagnostics in `rustc_codegen_ssa`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-05 08:32:56 +01:00
Jonathan Brouwer
9a2c4cb064
Rollup merge of #152115 - GuillaumeGomez:inline-diag-rustc_metadata, r=JonathanBrouwer
...
Convert to inline diagnostics in `rustc_metadata`
Part of https://github.com/rust-lang/rust/issues/151366 .
r? @JonathanBrouwer
2026-02-05 08:32:55 +01:00
Jonathan Brouwer
c2da69cd18
Rollup merge of #152114 - JonathanBrouwer:convert_mir_transform, r=jdonszelmann
...
Convert to inline diagnostics in `rustc_mir_transform`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-05 08:32:54 +01:00
Jonathan Brouwer
d58a87b287
Rollup merge of #152108 - JonathanBrouwer:convert_expand, r=jdonszelmann
...
Convert to inline diagnostics in `rustc_expand`
For https://github.com/rust-lang/rust/issues/151366
r? @jdonszelmann
2026-02-05 08:32:52 +01:00
Jonathan Brouwer
945bfa770e
Rollup merge of #152105 - GuillaumeGomez:inline-diag-rustc_ast_lowering, r=JonathanBrouwer
...
Convert to inline diagnostics in `rustc_ast_lowering`
Part of https://github.com/rust-lang/rust/issues/151366 .
r? @JonathanBrouwer
2026-02-05 08:32:51 +01:00
Jonathan Brouwer
f5a90728e3
Rollup merge of #152081 - clubby789:port-depgraph-attrs, r=JonathanBrouwer
...
Port depgraph testing attributes to parser
Tracking issue: rust-lang/rust#131229
Ports `#[rustc_clean]`, `#[rustc_if_this_changed]` and `#[rustc_then_this_would_need]` attributes.
Removes references to `rustc_dirty` as that attribute was folded into `rustc_clean` some time ago and rename some code accordingly.
r? JonathanBrouwer
2026-02-05 08:32:50 +01:00
Jonathan Brouwer
50c768e1bb
Rollup merge of #152068 - JonathanBrouwer:convert_resolve, r=lqd
...
Convert to inline diagnostics in `rustc_resolve`
For https://github.com/rust-lang/rust/issues/151366
2026-02-05 08:32:47 +01:00
Jonathan Brouwer
cf2ea13042
Rollup merge of #152023 - nnethercote:rm-Value, r=nnethercote
...
Some `rustc_query_system` cleanups
Small improvements I found while looking closely at `rustc_query_system`. Best reviewed one commit at a time.
r? @cjgillot
2026-02-05 08:32:46 +01:00