clippy::let_underscore_lock lint should use #[clippy::has_significant_drop] attribute rather than a hardcoded list #8859
Labels
C-an-interesting-project
Category: Interesting projects, that usually are more involved design/code wise.
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
Description
#[clippy::has_significant_drop]
was added for the lintclippy::significant_drop_in_scrutinee
.The
clippy::let_underscore_lock
currently uses a hardcoded list of type paths to lint against:rust-clippy/clippy_lints/src/let_underscore.rs
Lines 108 to 114 in a98e7ab
Instead, it should use the presence of the new
#[clippy::has_significant_drop]
attribute.Checking for the
parking_lot
types by path might need to stay around for a while until mostparking_lot
consumers are using a version with the#[clippy::has_significant_drop]
attribute.Version
Additional Labels
@rustbot label +C-enhancement +C-an-interesting-project
(I guess)
The text was updated successfully, but these errors were encountered: