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.
This commit is contained in:
Nicholas Nethercote 2024-06-05 18:06:09 +10:00
parent 4bc39f028d
commit c053e8939b
9 changed files with 11 additions and 125 deletions

View file

@ -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) {