You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
+1
Original file line number
Diff line number
Diff line change
@@ -425,6 +425,7 @@ lint_overflowing_bin_hex = literal out of range for `{$ty}`
425
425
.negative_becomes_note = and the value `-{$lit}` will become `{$actually}{$ty}`
426
426
.positive_note = the literal `{$lit}` (decimal `{$dec}`) does not fit into the type `{$ty}` and will become `{$actually}{$ty}`
427
427
.suggestion = consider using the type `{$suggestion_ty}` instead
428
+
.sign_bit_suggestion = to use as a negative number (decimal `{$negative_val}`), consider using the type `{$uint_ty}` for the literal and cast it to `{$int_ty}`
428
429
.help = consider using the type `{$suggestion_ty}` instead
429
430
430
431
lint_overflowing_int = literal out of range for `{$ty}`
0 commit comments