Skip to content

Commit 12be5bf

Browse files
committed
fix: fix overflowing hex wrong suggestion
Signed-off-by: 11happy <[email protected]>
1 parent 9e48dfe commit 12be5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_lint/src/types/literal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn report_bin_hex_error(
181181
lit_no_suffix,
182182
negative_val: actually.clone(),
183183
int_ty: int_ty.name_str(),
184-
uint_ty: int_ty.to_unsigned().name_str(),
184+
uint_ty: Integer::fit_unsigned(val).uint_ty_str(),
185185
})
186186
})
187187
.flatten();

0 commit comments

Comments
 (0)