make non-PartialEq-typed consts as patterns a hard error

This commit is contained in:
Ralf Jung 2024-02-08 20:08:19 +01:00
parent e9f9594913
commit 5b7786cd1d
8 changed files with 27 additions and 112 deletions

View file

@ -527,6 +527,11 @@ fn register_builtins(store: &mut LintStore) {
"no longer needed, see #93367 \
<https://github.com/rust-lang/rust/issues/93367> for more information",
);
store.register_removed(
"const_patterns_without_partial_eq",
"converted into hard error, see RFC #3535 \
<https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information",
);
}
fn register_internals(store: &mut LintStore) {