mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
Fix formatting
This commit is contained in:
parent
857f5dd475
commit
757f5bb3dc
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user