@@ -14,15 +14,15 @@ use stable_mir::{opaque, Opaque};
1414
1515impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: VariantIdx {
1616 type T = VariantIdx ;
17- fn stable ( & self , _: & mut Tables < ' tcx > ) -> Self :: T {
17+ fn stable ( & self , _: & mut Tables < ' _ > ) -> Self :: T {
1818 VariantIdx :: to_val ( self . as_usize ( ) )
1919 }
2020}
2121
2222impl < ' tcx > Stable < ' tcx > for rustc_abi:: Endian {
2323 type T = stable_mir:: target:: Endian ;
2424
25- fn stable ( & self , _tables : & mut Tables < ' tcx > ) -> Self :: T {
25+ fn stable ( & self , _tables : & mut Tables < ' _ > ) -> Self :: T {
2626 match self {
2727 rustc_abi:: Endian :: Little => stable_mir:: target:: Endian :: Little ,
2828 rustc_abi:: Endian :: Big => stable_mir:: target:: Endian :: Big ,
@@ -33,16 +33,16 @@ impl<'tcx> Stable<'tcx> for rustc_abi::Endian {
3333impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: TyAndLayout < ' tcx , ty:: Ty < ' tcx > > {
3434 type T = TyAndLayout ;
3535
36- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
36+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
3737 TyAndLayout { ty : self . ty . stable ( tables) , layout : self . layout . stable ( tables) }
3838 }
3939}
4040
4141impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: Layout < ' tcx > {
4242 type T = Layout ;
4343
44- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
45- tables. layout_id ( * self )
44+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
45+ tables. layout_id ( tables . tcx . lift ( * self ) . unwrap ( ) )
4646 }
4747}
4848
@@ -51,7 +51,7 @@ impl<'tcx> Stable<'tcx>
5151{
5252 type T = LayoutShape ;
5353
54- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
54+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
5555 LayoutShape {
5656 fields : self . fields . stable ( tables) ,
5757 variants : self . variants . stable ( tables) ,
@@ -65,7 +65,7 @@ impl<'tcx> Stable<'tcx>
6565impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: call:: FnAbi < ' tcx , ty:: Ty < ' tcx > > {
6666 type T = FnAbi ;
6767
68- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
68+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
6969 assert ! ( self . args. len( ) >= self . fixed_count as usize ) ;
7070 assert ! ( !self . c_variadic || matches!( self . conv, Conv :: C ) ) ;
7171 FnAbi {
@@ -81,7 +81,7 @@ impl<'tcx> Stable<'tcx> for rustc_target::abi::call::FnAbi<'tcx, ty::Ty<'tcx>> {
8181impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: call:: ArgAbi < ' tcx , ty:: Ty < ' tcx > > {
8282 type T = ArgAbi ;
8383
84- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
84+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
8585 ArgAbi {
8686 ty : self . layout . ty . stable ( tables) ,
8787 layout : self . layout . layout . stable ( tables) ,
@@ -93,7 +93,7 @@ impl<'tcx> Stable<'tcx> for rustc_target::abi::call::ArgAbi<'tcx, ty::Ty<'tcx>>
9393impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: call:: Conv {
9494 type T = CallConvention ;
9595
96- fn stable ( & self , _tables : & mut Tables < ' tcx > ) -> Self :: T {
96+ fn stable ( & self , _tables : & mut Tables < ' _ > ) -> Self :: T {
9797 match self {
9898 Conv :: C => CallConvention :: C ,
9999 Conv :: Rust => CallConvention :: Rust ,
@@ -122,7 +122,7 @@ impl<'tcx> Stable<'tcx> for rustc_target::abi::call::Conv {
122122impl < ' tcx > Stable < ' tcx > for rustc_target:: abi:: call:: PassMode {
123123 type T = PassMode ;
124124
125- fn stable ( & self , _tables : & mut Tables < ' tcx > ) -> Self :: T {
125+ fn stable ( & self , _tables : & mut Tables < ' _ > ) -> Self :: T {
126126 match self {
127127 rustc_target:: abi:: call:: PassMode :: Ignore => PassMode :: Ignore ,
128128 rustc_target:: abi:: call:: PassMode :: Direct ( attr) => PassMode :: Direct ( opaque ( attr) ) ,
@@ -146,7 +146,7 @@ impl<'tcx> Stable<'tcx> for rustc_target::abi::call::PassMode {
146146impl < ' tcx > Stable < ' tcx > for rustc_abi:: FieldsShape < rustc_target:: abi:: FieldIdx > {
147147 type T = FieldsShape ;
148148
149- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
149+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
150150 match self {
151151 rustc_abi:: FieldsShape :: Primitive => FieldsShape :: Primitive ,
152152 rustc_abi:: FieldsShape :: Union ( count) => FieldsShape :: Union ( * count) ,
@@ -165,7 +165,7 @@ impl<'tcx> Stable<'tcx>
165165{
166166 type T = VariantsShape ;
167167
168- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
168+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
169169 match self {
170170 rustc_abi:: Variants :: Single { index } => {
171171 VariantsShape :: Single { index : index. stable ( tables) }
@@ -185,7 +185,7 @@ impl<'tcx> Stable<'tcx>
185185impl < ' tcx > Stable < ' tcx > for rustc_abi:: TagEncoding < rustc_target:: abi:: VariantIdx > {
186186 type T = TagEncoding ;
187187
188- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
188+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
189189 match self {
190190 rustc_abi:: TagEncoding :: Direct => TagEncoding :: Direct ,
191191 rustc_abi:: TagEncoding :: Niche { untagged_variant, niche_variants, niche_start } => {
@@ -202,7 +202,7 @@ impl<'tcx> Stable<'tcx> for rustc_abi::TagEncoding<rustc_target::abi::VariantIdx
202202impl < ' tcx > Stable < ' tcx > for rustc_abi:: Abi {
203203 type T = ValueAbi ;
204204
205- fn stable ( & self , tables : & mut Tables < ' tcx > ) -> Self :: T {
205+ fn stable ( & self , tables : & mut Tables < ' _ > ) -> Self :: T {
206206 match * self {
207207 rustc_abi:: Abi :: Uninhabited => ValueAbi :: Uninhabited ,
208208 rustc_abi:: Abi :: Scalar ( scalar) => ValueAbi :: Scalar ( scalar. stable ( tables) ) ,
@@ -220,23 +220,23 @@ impl<'tcx> Stable<'tcx> for rustc_abi::Abi {
220220impl < ' tcx > Stable < ' tcx > for rustc_abi:: Size {
221221 type T = Size ;
222222
223- fn stable ( & self , _tables : & mut Tables < ' tcx > ) -> Self :: T {
223+ fn stable ( & self , _tables : & mut Tables < ' _ > ) -> Self :: T {
224224 self . bytes_usize ( )
225225 }
226226}
227227
228228impl < ' tcx > Stable < ' tcx > for rustc_abi:: Align {
229229 type T = Align ;
230230
231- fn stable ( & self , _tables : & mut Tables < ' tcx > ) -> Self :: T {
231+ fn stable ( & self , _tables : & mut Tables < ' _ > ) -> Self :: T {
232232 self . bytes ( )
233233 }
234234}
235235
236236impl < ' tcx > Stable < ' tcx > for rustc_abi:: Scalar {
237237 type T = Opaque ;
238238
239- fn stable ( & self , _tables : & mut Tables < ' tcx > ) -> Self :: T {
239+ fn stable ( & self , _tables : & mut Tables < ' _ > ) -> Self :: T {
240240 opaque ( self )
241241 }
242242}
0 commit comments