Skip to content

Commit

Permalink
fix: fix overflowing hex wrong suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: 11happy <soni5happy@gmail.com>
  • Loading branch information
11happy committed Feb 2, 2025
1 parent 9e48dfe commit 12be5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lint/src/types/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ fn report_bin_hex_error(
lit_no_suffix,
negative_val: actually.clone(),
int_ty: int_ty.name_str(),
uint_ty: int_ty.to_unsigned().name_str(),
uint_ty: Integer::fit_unsigned(val).uint_ty_str(),
})
})
.flatten();
Expand Down

0 comments on commit 12be5bf

Please sign in to comment.