1
Fork 0

Fix the misleading diagnostic for let_underscore_drop on type without Drop implementation

This commit is contained in:
makai410 2024-09-26 10:18:18 +08:00
parent 3f99982c63
commit 58921874cb
8 changed files with 10 additions and 10 deletions

View file

@ -51,7 +51,7 @@ declare_lint! {
/// intent.
pub LET_UNDERSCORE_DROP,
Allow,
"non-binding let on a type that implements `Drop`"
"non-binding let on a type that has a destructor"
}
declare_lint! {