Let lint_dropping_references give the suggestion if possible.
This commit is contained in:
parent
5870f1ccbb
commit
ca68c93135
7 changed files with 261 additions and 13 deletions
|
@ -238,6 +238,7 @@ lint_dropping_copy_types = calls to `std::mem::drop` with a value that implement
|
|||
lint_dropping_references = calls to `std::mem::drop` with a reference instead of an owned value does nothing
|
||||
.label = argument has type `{$arg_ty}`
|
||||
.note = use `let _ = ...` to ignore the expression or result
|
||||
.suggestion = use `let _ = ...` to ignore the expression or result
|
||||
|
||||
lint_duplicate_macro_attribute =
|
||||
duplicated attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue