lint: port drop trait/glue diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
8e836566f0
commit
7ef610c003
3 changed files with 20 additions and 13 deletions
|
@ -141,3 +141,9 @@ lint-redundant-semicolons =
|
|||
[true] these semicolons
|
||||
*[false] this semicolon
|
||||
}
|
||||
|
||||
lint-drop-trait-constraints =
|
||||
bounds on `{$predicate}` are most likely incorrect, consider instead using `{$needs_drop}` to detect whether a type can be trivially dropped
|
||||
|
||||
lint-drop-glue =
|
||||
types that do not implement `Drop` can still have drop glue, consider instead using `{$needs_drop}` to detect whether a type is trivially dropped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue