@@ -27,6 +27,7 @@ pub use UnsafeSource::*;
2727use crate :: ptr:: P ;
2828use crate :: token:: { self , CommentKind , Delimiter } ;
2929use crate :: tokenstream:: { DelimSpan , LazyAttrTokenStream , TokenStream } ;
30+ use rustc_data_structures:: packed:: Pu128 ;
3031use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
3132use rustc_data_structures:: stack:: ensure_sufficient_stack;
3233use rustc_data_structures:: sync:: Lrc ;
@@ -1833,7 +1834,7 @@ pub enum LitKind {
18331834 /// A character literal (`'a'`).
18341835 Char ( char ) ,
18351836 /// An integer literal (`1`).
1836- Int ( u128 , LitIntType ) ,
1837+ Int ( Pu128 , LitIntType ) ,
18371838 /// A float literal (`1.0`, `1f64` or `1E10f64`). The pre-suffix part is
18381839 /// stored as a symbol rather than `f64` so that `LitKind` can impl `Eq`
18391840 /// and `Hash`.
@@ -3304,13 +3305,9 @@ mod size_asserts {
33043305 static_assert_size ! ( Impl , 136 ) ;
33053306 static_assert_size ! ( Item , 136 ) ;
33063307 static_assert_size ! ( ItemKind , 64 ) ;
3307- // This can be removed after i128:128 is in the bootstrap compiler's target.
3308- #[ cfg( not( bootstrap) ) ]
3309- static_assert_size ! ( LitKind , 32 ) ;
3308+ static_assert_size ! ( LitKind , 24 ) ;
33103309 static_assert_size ! ( Local , 72 ) ;
3311- // This can be removed after i128:128 is in the bootstrap compiler's target.
3312- #[ cfg( not( bootstrap) ) ]
3313- static_assert_size ! ( MetaItemLit , 48 ) ;
3310+ static_assert_size ! ( MetaItemLit , 40 ) ;
33143311 static_assert_size ! ( Param , 40 ) ;
33153312 static_assert_size ! ( Pat , 72 ) ;
33163313 static_assert_size ! ( Path , 24 ) ;
0 commit comments