Emits suggestions for expressions with parentheses or not separately
This commit is contained in:
parent
6034b2fcb8
commit
910a5ad2df
5 changed files with 66 additions and 27 deletions
|
@ -197,7 +197,9 @@ 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
|
||||
|
||||
lint_range_endpoint_out_of_range = range endpoint is out of range for `{$ty}`
|
||||
.suggestion = use an inclusive range instead
|
||||
|
||||
lint_range_use_inclusive_range = use an inclusive range instead
|
||||
|
||||
|
||||
lint_overflowing_bin_hex = literal out of range for `{$ty}`
|
||||
.negative_note = the literal `{$lit}` (decimal `{$dec}`) does not fit into the type `{$ty}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue