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

@ -531,7 +531,7 @@ lint_non_binding_let_multi_suggestion =
consider immediately dropping the value
lint_non_binding_let_on_drop_type =
non-binding let on a type that implements `Drop`
non-binding let on a type that has a destructor
lint_non_binding_let_on_sync_lock = non-binding let on a synchronization lock
.label = this lock is not assigned to a binding and is immediately dropped