Uh oh!
There was an error while loading. Please reload this page.
Rename ModDefId to ModId and use more - #159197
Conversation
rustbot
commented
Jul 12, 2026
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt HIR ty lowering was modified cc @fmease Some changes occurred in exhaustiveness checking cc @Nadrieril Some changes occurred in match checking cc @Nadrieril Some changes occurred in compiler/rustc_passes/src/check_attr.rs |
rustbot
commented
Jul 12, 2026
rustbot has assigned @JonathanBrouwer. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
petrochenkov
commented
Jul 13, 2026
I think using |
rustbot
commented
Jul 14, 2026
cc @rust-lang/clippy |
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.
camsteffen
commented
Jul 14, 2026
@rustbot ready |
petrochenkov
commented
Jul 14, 2026
CI failed due to a spurious network error. |
JonathanBrouwer
commented
Jul 14, 2026
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. Link to failure: #159278 (comment) |
This pull request was unapproved. This PR was contained in a rollup (#159278), which was unapproved. |
JonathanBrouwer
commented
Jul 14, 2026
Also this one I think |
This comment has been minimized.
This comment has been minimized.
rustbot
commented
Jul 14, 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. |
camsteffen
commented
Jul 14, 2026
Fixed the errors. @rustbot ready |
petrochenkov
commented
Jul 15, 2026
@bors r+ |
…uwer Rollup of 8 pull requests Successful merges: - #159197 (Rename ModDefId to ModId and use more) - #159222 (semicolon_in_expressions_from_macros: Lint on non-local macros too) - #159296 (Implement `bool::toggle`) - #158302 (Fix `overflowing_literals` lint with repeated negation) - #158484 (Add documentation for the `cold` and `track_caller` attributes) - #159239 (Add codegen test for remainder match) - #159330 (fix some edition annotations in UI tests) - #159331 (Fix ignore-llvm-version directive in codegen-llvm/array-equality.rs) Failed merges: - #158962 (Add `proc_macro` attribute documentation)
…uwer Rollup of 8 pull requests Successful merges: - #159197 (Rename ModDefId to ModId and use more) - #159222 (semicolon_in_expressions_from_macros: Lint on non-local macros too) - #159296 (Implement `bool::toggle`) - #158302 (Fix `overflowing_literals` lint with repeated negation) - #158484 (Add documentation for the `cold` and `track_caller` attributes) - #159239 (Add codegen test for remainder match) - #159330 (fix some edition annotations in UI tests) - #159331 (Fix ignore-llvm-version directive in codegen-llvm/array-equality.rs) Failed merges: - #158962 (Add `proc_macro` attribute documentation)
…uwer Rollup of 8 pull requests Successful merges: - #159197 (Rename ModDefId to ModId and use more) - #159222 (semicolon_in_expressions_from_macros: Lint on non-local macros too) - #159296 (Implement `bool::toggle`) - #158302 (Fix `overflowing_literals` lint with repeated negation) - #158484 (Add documentation for the `cold` and `track_caller` attributes) - #159239 (Add codegen test for remainder match) - #159330 (fix some edition annotations in UI tests) - #159331 (Fix ignore-llvm-version directive in codegen-llvm/array-equality.rs) Failed merges: - #158962 (Add `proc_macro` attribute documentation)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #159197 - camsteffen:more-modid, r=petrochenkov Rename ModDefId to ModId and use more Addresses some FIXMEs. The `ModDefId` was used pretty sparingly, and honestly I wondered if it should exist at all. After making these changes, I think the type is worth it. Most notably it is now used in `Visibility::Restricted`. I first renamed `ModDefId` to `ModId` since I think the former is over-specific, and also this is more in line with `BodyId` or `OwnerId`. I'll wait for initial feedback before fixing rustdoc/clippy.
Rename ModDefId to ModId and use more Addresses some FIXMEs. The `ModDefId` was used pretty sparingly, and honestly I wondered if it should exist at all. After making these changes, I think the type is worth it. Most notably it is now used in `Visibility::Restricted`. I first renamed `ModDefId` to `ModId` since I think the former is over-specific, and also this is more in line with `BodyId` or `OwnerId`. I'll wait for initial feedback before fixing rustdoc/clippy.
…uwer Rollup of 8 pull requests Successful merges: - rust-lang/rust#159197 (Rename ModDefId to ModId and use more) - rust-lang/rust#159222 (semicolon_in_expressions_from_macros: Lint on non-local macros too) - rust-lang/rust#159296 (Implement `bool::toggle`) - rust-lang/rust#158302 (Fix `overflowing_literals` lint with repeated negation) - rust-lang/rust#158484 (Add documentation for the `cold` and `track_caller` attributes) - rust-lang/rust#159239 (Add codegen test for remainder match) - rust-lang/rust#159330 (fix some edition annotations in UI tests) - rust-lang/rust#159331 (Fix ignore-llvm-version directive in codegen-llvm/array-equality.rs) Failed merges: - rust-lang/rust#158962 (Add `proc_macro` attribute documentation)
View all comments
Addresses some FIXMEs.
The
ModDefIdwas used pretty sparingly, and honestly I wondered if it should exist at all. After making these changes, I think the type is worth it. Most notably it is now used inVisibility::Restricted.I first renamed
ModDefIdtoModIdsince I think the former is over-specific, and also this is more in line withBodyIdorOwnerId.I'll wait for initial feedback before fixing rustdoc/clippy.