@@ -94,22 +94,22 @@ pub struct ExistentialProjection {
94
94
#[ args( <S >, from: ty:: DynKind , state: S as _s) ]
95
95
pub enum DynKind {
96
96
Dyn ,
97
- DynStar ,
98
97
}
99
98
100
99
/// Reflects [`ty::BoundTyKind`]
101
100
#[ derive_group( Serializers ) ]
102
101
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
103
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundTyKind , state: S as gstate ) ]
102
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundTyKind , state: S as s ) ]
104
103
pub enum BoundTyKind {
105
104
Anon ,
105
+ #[ custom_arm( & FROM_TYPE :: Param ( def_id) => TO_TYPE :: Param ( def_id. sinto( s) , s. base( ) . tcx. item_name( def_id) . sinto( s) ) , ) ]
106
106
Param ( DefId , Symbol ) ,
107
107
}
108
108
109
109
/// Reflects [`ty::BoundTy`]
110
110
#[ derive_group( Serializers ) ]
111
111
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
112
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundTy , state: S as gstate ) ]
112
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundTy , state: S as s ) ]
113
113
pub struct BoundTy {
114
114
pub var : BoundVar ,
115
115
pub kind : BoundTyKind ,
@@ -120,17 +120,19 @@ sinto_as_usize!(rustc_middle::ty, BoundVar);
120
120
/// Reflects [`ty::BoundRegionKind`]
121
121
#[ derive_group( Serializers ) ]
122
122
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
123
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundRegionKind , state: S as gstate ) ]
123
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundRegionKind , state: S as s ) ]
124
124
pub enum BoundRegionKind {
125
125
Anon ,
126
+ NamedAnon ( Symbol ) ,
127
+ #[ custom_arm( & FROM_TYPE :: Named ( def_id) => TO_TYPE :: Named ( def_id. sinto( s) , s. base( ) . tcx. item_name( def_id) . sinto( s) ) , ) ]
126
128
Named ( DefId , Symbol ) ,
127
129
ClosureEnv ,
128
130
}
129
131
130
132
/// Reflects [`ty::BoundRegion`]
131
133
#[ derive_group( Serializers ) ]
132
134
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
133
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundRegion , state: S as gstate ) ]
135
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: BoundRegion , state: S as s ) ]
134
136
pub struct BoundRegion {
135
137
pub var : BoundVar ,
136
138
pub kind : BoundRegionKind ,
@@ -370,7 +372,7 @@ impl VariantDef {
370
372
/// Reflects [`ty::EarlyParamRegion`]
371
373
#[ derive_group( Serializers ) ]
372
374
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
373
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: EarlyParamRegion , state: S as gstate ) ]
375
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: EarlyParamRegion , state: S as s ) ]
374
376
pub struct EarlyParamRegion {
375
377
pub index : u32 ,
376
378
pub name : Symbol ,
@@ -379,7 +381,7 @@ pub struct EarlyParamRegion {
379
381
/// Reflects [`ty::LateParamRegion`]
380
382
#[ derive_group( Serializers ) ]
381
383
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
382
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: LateParamRegion , state: S as gstate ) ]
384
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: LateParamRegion , state: S as s ) ]
383
385
pub struct LateParamRegion {
384
386
pub scope : DefId ,
385
387
pub kind : LateParamRegionKind ,
@@ -388,9 +390,11 @@ pub struct LateParamRegion {
388
390
/// Reflects [`ty::LateParamRegionKind`]
389
391
#[ derive_group( Serializers ) ]
390
392
#[ derive( AdtInto , Clone , Debug , JsonSchema , Hash , PartialEq , Eq , PartialOrd , Ord ) ]
391
- #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: LateParamRegionKind , state: S as gstate ) ]
393
+ #[ args( <' tcx, S : UnderOwnerState <' tcx>>, from: ty:: LateParamRegionKind , state: S as s ) ]
392
394
pub enum LateParamRegionKind {
393
395
Anon ( u32 ) ,
396
+ NamedAnon ( u32 , Symbol ) ,
397
+ #[ custom_arm( & FROM_TYPE :: Named ( def_id) => TO_TYPE :: Named ( def_id. sinto( s) , s. base( ) . tcx. item_name( def_id) . sinto( s) ) , ) ]
394
398
Named ( DefId , Symbol ) ,
395
399
ClosureEnv ,
396
400
}
@@ -1078,7 +1082,6 @@ pub enum PointerCoercion {
1078
1082
ClosureFnPointer ( Safety ) ,
1079
1083
MutToConstPointer ,
1080
1084
ArrayToPointer ,
1081
- DynStar ,
1082
1085
Unsize ,
1083
1086
}
1084
1087
0 commit comments