diff options
| author | ninad <ninadhuilgol@gmail.com> | 2024-04-14 20:29:30 +0530 |
|---|---|---|
| committer | ninad <ninadhuilgol@gmail.com> | 2024-04-14 20:29:30 +0530 |
| commit | 757f5bb3dcb46e4954cf69e6c47c1ae1806f2a9b (patch) | |
| tree | e711bbf0a339bdb3e5e9586a3ac5ae29cd0528bc | |
| parent | 857f5dd475ca33c825446fb3235e39b928dbf998 (diff) | |
| download | rust-757f5bb3dcb46e4954cf69e6c47c1ae1806f2a9b.tar.gz rust-757f5bb3dcb46e4954cf69e6c47c1ae1806f2a9b.zip | |
Fix formatting
| -rw-r--r-- | compiler/rustc_ast_lowering/src/format.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/format.rs b/compiler/rustc_ast_lowering/src/format.rs index a37e0832b6f..2d8f4626752 100644 --- a/compiler/rustc_ast_lowering/src/format.rs +++ b/compiler/rustc_ast_lowering/src/format.rs @@ -64,7 +64,9 @@ impl<'hir> LoweringContext<'_, 'hir> { let isize_max = usize_max >> 1; match ty { // unsuffixed integer literals are assumed to be i32's - LitIntType::Unsuffixed => (n <= i32::MAX as u128).then_some(Symbol::intern(&n.to_string())), + LitIntType::Unsuffixed => { + (n <= i32::MAX as u128).then_some(Symbol::intern(&n.to_string())) + } LitIntType::Signed(int_ty) => { let max_literal = int_ty_max(int_ty).unwrap_or(isize_max); (n <= max_literal).then_some(Symbol::intern(&n.to_string())) |
