diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-03 15:49:10 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-05-03 15:56:59 +0200 |
| commit | cbd682beeb0a7b54f4cc9e5dee3be3e6d728b9c4 (patch) | |
| tree | 3d88ab38d03a563037602c23f92f541bd9f8d378 /compiler/rustc_lint/src | |
| parent | 179a6a08b127c7670ec648c245d8c31c6ac2419c (diff) | |
| download | rust-cbd682beeb0a7b54f4cc9e5dee3be3e6d728b9c4.tar.gz rust-cbd682beeb0a7b54f4cc9e5dee3be3e6d728b9c4.zip | |
turn pointer_structural_match into a hard error
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs index b3a7f50e8ea..04f15167bd9 100644 --- a/compiler/rustc_lint/src/lib.rs +++ b/compiler/rustc_lint/src/lib.rs @@ -544,6 +544,11 @@ fn register_builtins(store: &mut LintStore) { "converted into hard error, see RFC #3535 \ <https://rust-lang.github.io/rfcs/3535-constants-in-patterns.html> for more information", ); + store.register_removed( + "pointer_structural_match", + "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) { |
