Uh oh!
There was an error while loading. Please reload this page.
Move impl Interner for TyCtxt to its own submodule - #152148
Conversation
rustbot
commented
Feb 5, 2026
rustbot has assigned @petrochenkov. Use |
Zalathar
commented
Feb 5, 2026
I had been looking into whether it's feasible to extract |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
petrochenkov
commented
Feb 9, 2026
r=me after rebase. |
Requiring `fn` in the macro syntax makes it a little more obvious that the macro declares functions with those names, and makes them easier to grep for.
rustbot
commented
Feb 10, 2026
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Zalathar
commented
Feb 10, 2026
@bors r=petrochenkov |
Move `impl Interner for TyCtxt` to its own submodule This impl is several hundred lines of mostly self-contained, mostly boilerplate code that can be extracted out of the dauntingly large `rustc_middle::ty::context` module. - The trait and its impl were introduced by rust-lang#97287. --- There should be no change to compiler behaviour.
Rollup of 7 pull requests Successful merges: - #151152 (Add FCW for derive helper attributes that will conflict with built-in attributes) - #151954 (Add help message suggesting explicit reference cast for From/TryFrom) - #152148 (Move `impl Interner for TyCtxt` to its own submodule) - #152226 (Modernize diagnostic for indeterminate trait object lifetime bounds) - #150688 (typeck: Make it clearer that `check_pat_lit` only handles literal patterns) - #152293 (Format heterogeneous try blocks) - #152396 (Uplift `Predicate::allow_normalization` to `rustc_type_ir`)
Move `impl Interner for TyCtxt` to its own submodule This impl is several hundred lines of mostly self-contained, mostly boilerplate code that can be extracted out of the dauntingly large `rustc_middle::ty::context` module. - The trait and its impl were introduced by rust-lang#97287. --- There should be no change to compiler behaviour.
Move `impl Interner for TyCtxt` to its own submodule This impl is several hundred lines of mostly self-contained, mostly boilerplate code that can be extracted out of the dauntingly large `rustc_middle::ty::context` module. - The trait and its impl were introduced by rust-lang#97287. --- There should be no change to compiler behaviour.
Move `impl Interner for TyCtxt` to its own submodule This impl is several hundred lines of mostly self-contained, mostly boilerplate code that can be extracted out of the dauntingly large `rustc_middle::ty::context` module. - The trait and its impl were introduced by rust-lang#97287. --- There should be no change to compiler behaviour.
…uwer Rollup of 11 pull requests Successful merges: - #152364 (Port a lot of attributes to the new parser) - #151954 (Add help message suggesting explicit reference cast for From/TryFrom) - #152148 (Move `impl Interner for TyCtxt` to its own submodule) - #152226 (Modernize diagnostic for indeterminate trait object lifetime bounds) - #152351 (Remove `SubdiagMessage` in favour of the identical `DiagMessage`) - #152417 (Move the needs-drop check for `arena_cache` queries out of macro code) - #150688 (typeck: Make it clearer that `check_pat_lit` only handles literal patterns) - #152293 (Format heterogeneous try blocks) - #152355 (Update documentation of rustc_macros) - #152396 (Uplift `Predicate::allow_normalization` to `rustc_type_ir`) - #152425 (Port #![test_runner] to the attribute parser)
…uwer Rollup of 10 pull requests Successful merges: - #152364 (Port a lot of attributes to the new parser) - #151954 (Add help message suggesting explicit reference cast for From/TryFrom) - #152148 (Move `impl Interner for TyCtxt` to its own submodule) - #152226 (Modernize diagnostic for indeterminate trait object lifetime bounds) - #152351 (Remove `SubdiagMessage` in favour of the identical `DiagMessage`) - #152417 (Move the needs-drop check for `arena_cache` queries out of macro code) - #150688 (typeck: Make it clearer that `check_pat_lit` only handles literal patterns) - #152293 (Format heterogeneous try blocks) - #152355 (Update documentation of rustc_macros) - #152396 (Uplift `Predicate::allow_normalization` to `rustc_type_ir`)
Uh oh!
There was an error while loading. Please reload this page.
…uwer Rollup of 10 pull requests Successful merges: - rust-lang/rust#152364 (Port a lot of attributes to the new parser) - rust-lang/rust#151954 (Add help message suggesting explicit reference cast for From/TryFrom) - rust-lang/rust#152148 (Move `impl Interner for TyCtxt` to its own submodule) - rust-lang/rust#152226 (Modernize diagnostic for indeterminate trait object lifetime bounds) - rust-lang/rust#152351 (Remove `SubdiagMessage` in favour of the identical `DiagMessage`) - rust-lang/rust#152417 (Move the needs-drop check for `arena_cache` queries out of macro code) - rust-lang/rust#150688 (typeck: Make it clearer that `check_pat_lit` only handles literal patterns) - rust-lang/rust#152293 (Format heterogeneous try blocks) - rust-lang/rust#152355 (Update documentation of rustc_macros) - rust-lang/rust#152396 (Uplift `Predicate::allow_normalization` to `rustc_type_ir`)
…uwer Rollup of 10 pull requests Successful merges: - rust-lang/rust#152364 (Port a lot of attributes to the new parser) - rust-lang/rust#151954 (Add help message suggesting explicit reference cast for From/TryFrom) - rust-lang/rust#152148 (Move `impl Interner for TyCtxt` to its own submodule) - rust-lang/rust#152226 (Modernize diagnostic for indeterminate trait object lifetime bounds) - rust-lang/rust#152351 (Remove `SubdiagMessage` in favour of the identical `DiagMessage`) - rust-lang/rust#152417 (Move the needs-drop check for `arena_cache` queries out of macro code) - rust-lang/rust#150688 (typeck: Make it clearer that `check_pat_lit` only handles literal patterns) - rust-lang/rust#152293 (Format heterogeneous try blocks) - rust-lang/rust#152355 (Update documentation of rustc_macros) - rust-lang/rust#152396 (Uplift `Predicate::allow_normalization` to `rustc_type_ir`)
This impl is several hundred lines of mostly self-contained, mostly boilerplate code that can be extracted out of the dauntingly large
rustc_middle::ty::contextmodule.rustc_type_ir#97287.There should be no change to compiler behaviour.