Skip to content

Commit 33a0468

Browse files
committed
fix: fix overflowing hex wrong suggestion
Signed-off-by: 11happy <[email protected]>
1 parent f45d4ac commit 33a0468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/types/literal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fn report_bin_hex_error(
186186
lit_no_suffix,
187187
negative_val: actually.clone(),
188188
int_ty: int_ty.name_str(),
189-
uint_ty: int_ty.to_unsigned().name_str(),
189+
uint_ty: Integer::fit_unsigned(val).uint_ty_str(),
190190
})
191191
})
192192
.flatten();

0 commit comments

Comments
 (0)