We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 857f5dd commit 757f5bbCopy full SHA for 757f5bb
compiler/rustc_ast_lowering/src/format.rs
@@ -64,7 +64,9 @@ impl<'hir> LoweringContext<'_, 'hir> {
64
let isize_max = usize_max >> 1;
65
match ty {
66
// unsuffixed integer literals are assumed to be i32's
67
- LitIntType::Unsuffixed => (n <= i32::MAX as u128).then_some(Symbol::intern(&n.to_string())),
+ LitIntType::Unsuffixed => {
68
+ (n <= i32::MAX as u128).then_some(Symbol::intern(&n.to_string()))
69
+ }
70
LitIntType::Signed(int_ty) => {
71
let max_literal = int_ty_max(int_ty).unwrap_or(isize_max);
72
(n <= max_literal).then_some(Symbol::intern(&n.to_string()))
0 commit comments