Always exhaustively match on typing mode#155047
Always exhaustively match on typing mode#155047jdonszelmann wants to merge 5 commits intorust-lang:mainfrom
Conversation
|
Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred to the CTFE machinery Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri Some changes occurred in compiler/rustc_attr_parsing Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in compiler/rustc_hir/src/attrs Some changes occurred to constck cc @fee1-dead changes to the core type system cc @lcnr |
63485a1 to
ef0684a
Compare
|
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. |
This comment has been minimized.
This comment has been minimized.
fcb4cae to
62dbaab
Compare
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
62dbaab to
791b38b
Compare
|
The job Click to see the possible cause of the failure (guessed by this bot) |
r? @lcnr
Unimplements Eq/PartialEq for TypingMode, adds TypingModeEq for the few cases where we need it (mainly in the query system), and adds a new rustc internal lint to detect cases where we non-exhaustively match on typing mode.