@@ -2055,7 +2055,7 @@ pub enum ConstantKind<'tcx> {
20552055 Ty ( ty:: Const < ' tcx > ) ,
20562056
20572057 /// 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 > ) ,
20592059
20602060 /// This constant cannot go back into the type system, as it represents
20612061 /// something the type system cannot handle (e.g. pointers).
@@ -2442,10 +2442,10 @@ impl<'tcx> ConstantKind<'tcx> {
24422442/// An unevaluated (potentially generic) constant used in MIR.
24432443#[ derive( Copy , Clone , Debug , Eq , PartialEq , PartialOrd , Ord , TyEncodable , TyDecodable , Lift ) ]
24442444#[ derive( Hash , HashStable ) ]
2445- pub struct Unevaluated < ' tcx , P = Option < Promoted > > {
2445+ pub struct Unevaluated < ' tcx > {
24462446 pub def : ty:: WithOptConstParam < DefId > ,
24472447 pub substs : SubstsRef < ' tcx > ,
2448- pub promoted : P ,
2448+ pub promoted : Option < Promoted > ,
24492449}
24502450
24512451impl < ' tcx > Unevaluated < ' tcx > {
@@ -2457,9 +2457,9 @@ impl<'tcx> Unevaluated<'tcx> {
24572457 }
24582458}
24592459
2460- impl < ' tcx , P : Default > Unevaluated < ' tcx , P > {
2460+ impl < ' tcx > Unevaluated < ' tcx > {
24612461 #[ 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 > {
24632463 Unevaluated { def, substs, promoted : Default :: default ( ) }
24642464 }
24652465}
0 commit comments