Fix the misleading diagnostic for let_underscore_drop on type without Drop implementation
This commit is contained in:
parent
3f99982c63
commit
58921874cb
8 changed files with 10 additions and 10 deletions
|
@ -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! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue