diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-05 18:06:09 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-27 08:55:28 +1000 | 
| commit | c053e8939bae9c052ff53f58e692408a8099df5d (patch) | |
| tree | 5dfc86adce7558619aa6de246c38e67055e7b845 /compiler/rustc_lint/src/lib.rs | |
| parent | 4bc39f028d14c24b04dd17dc425432c6ec354536 (diff) | |
| download | rust-c053e8939bae9c052ff53f58e692408a8099df5d.tar.gz rust-c053e8939bae9c052ff53f58e692408a8099df5d.zip | |
Remove the `box_pointers` lint.
As the comment says, this lint "is mostly historical, and not particularly useful". It's not worth keeping it around.
Diffstat (limited to 'compiler/rustc_lint/src/lib.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lib.rs | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs index 7dae2de7bfb..17f9d4421ae 100644 --- a/compiler/rustc_lint/src/lib.rs +++ b/compiler/rustc_lint/src/lib.rs @@ -187,7 +187,6 @@ late_lint_methods!( ImproperCTypesDefinitions: ImproperCTypesDefinitions, InvalidFromUtf8: InvalidFromUtf8, VariantSizeDifferences: VariantSizeDifferences, - BoxPointers: BoxPointers, PathStatements: PathStatements, LetUnderscore: LetUnderscore, InvalidReferenceCasting: InvalidReferenceCasting, @@ -551,6 +550,10 @@ 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( + "box_pointers", + "it does not detect other kinds of allocations, and existed only for historical reasons", + ); } fn register_internals(store: &mut LintStore) { | 
