@@ -2055,7 +2055,7 @@ pub enum ConstantKind<'tcx> {
2055
2055
Ty ( ty:: Const < ' tcx > ) ,
2056
2056
2057
2057
/// An unevaluated mir constant which is not part of the type system.
2058
- Unevaluated ( Unevaluated < ' tcx , Option < Promoted > > , Ty < ' tcx > ) ,
2058
+ Unevaluated ( Unevaluated < ' tcx > , Ty < ' tcx > ) ,
2059
2059
2060
2060
/// This constant cannot go back into the type system, as it represents
2061
2061
/// something the type system cannot handle (e.g. pointers).
@@ -2442,10 +2442,10 @@ impl<'tcx> ConstantKind<'tcx> {
2442
2442
/// An unevaluated (potentially generic) constant used in MIR.
2443
2443
#[ derive( Copy , Clone , Debug , Eq , PartialEq , PartialOrd , Ord , TyEncodable , TyDecodable , Lift ) ]
2444
2444
#[ derive( Hash , HashStable ) ]
2445
- pub struct Unevaluated < ' tcx , P = Option < Promoted > > {
2445
+ pub struct Unevaluated < ' tcx > {
2446
2446
pub def : ty:: WithOptConstParam < DefId > ,
2447
2447
pub substs : SubstsRef < ' tcx > ,
2448
- pub promoted : P ,
2448
+ pub promoted : Option < Promoted > ,
2449
2449
}
2450
2450
2451
2451
impl < ' tcx > Unevaluated < ' tcx > {
@@ -2457,9 +2457,9 @@ impl<'tcx> Unevaluated<'tcx> {
2457
2457
}
2458
2458
}
2459
2459
2460
- impl < ' tcx , P : Default > Unevaluated < ' tcx , P > {
2460
+ impl < ' tcx > Unevaluated < ' tcx > {
2461
2461
#[ inline]
2462
- pub fn new ( def : ty:: WithOptConstParam < DefId > , substs : SubstsRef < ' tcx > ) -> Unevaluated < ' tcx , P > {
2462
+ pub fn new ( def : ty:: WithOptConstParam < DefId > , substs : SubstsRef < ' tcx > ) -> Unevaluated < ' tcx > {
2463
2463
Unevaluated { def, substs, promoted : Default :: default ( ) }
2464
2464
}
2465
2465
}
0 commit comments