@@ -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 > ,  Ty < ' tcx > ) , 
2058+      Unevaluated ( UnevaluatedConst < ' 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). 
@@ -2315,7 +2315,7 @@ impl<'tcx> ConstantKind<'tcx> {
23152315            ty:: InlineConstSubsts :: new ( tcx,  ty:: InlineConstSubstsParts  {  parent_substs,  ty } ) 
23162316                . substs ; 
23172317
2318-         let  uneval = Unevaluated  { 
2318+         let  uneval = UnevaluatedConst  { 
23192319            def :  ty:: WithOptConstParam :: unknown ( def_id) . to_global ( ) , 
23202320            substs, 
23212321            promoted :  None , 
@@ -2403,7 +2403,7 @@ impl<'tcx> ConstantKind<'tcx> {
24032403
24042404        let  hir_id = tcx. hir ( ) . local_def_id_to_hir_id ( def. did ) ; 
24052405        let  span = tcx. hir ( ) . span ( hir_id) ; 
2406-         let  uneval = Unevaluated :: new ( def. to_global ( ) ,  substs) ; 
2406+         let  uneval = UnevaluatedConst :: new ( def. to_global ( ) ,  substs) ; 
24072407        debug ! ( ?span,  ?param_env) ; 
24082408
24092409        match  tcx. const_eval_resolve ( param_env,  uneval,  Some ( span) )  { 
@@ -2416,7 +2416,7 @@ impl<'tcx> ConstantKind<'tcx> {
24162416                // Error was handled in `const_eval_resolve`. Here we just create a 
24172417                // new unevaluated const and error hard later in codegen 
24182418                Self :: Unevaluated ( 
2419-                     Unevaluated  { 
2419+                     UnevaluatedConst  { 
24202420                        def :  def. to_global ( ) , 
24212421                        substs :  InternalSubsts :: identity_for_item ( tcx,  def. did . to_def_id ( ) ) , 
24222422                        promoted :  None , 
@@ -2442,25 +2442,28 @@ 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 >  { 
2445+ pub  struct  UnevaluatedConst < ' tcx >  { 
24462446    pub  def :  ty:: WithOptConstParam < DefId > , 
24472447    pub  substs :  SubstsRef < ' tcx > , 
24482448    pub  promoted :  Option < Promoted > , 
24492449} 
24502450
2451- impl < ' tcx >  Unevaluated < ' tcx >  { 
2451+ impl < ' tcx >  UnevaluatedConst < ' tcx >  { 
24522452    // FIXME: probably should get rid of this method. It's also wrong to 
24532453    // shrink and then later expand a promoted. 
24542454    #[ inline]  
2455-     pub  fn  shrink ( self )  -> ty:: Unevaluated < ' tcx >  { 
2456-         ty:: Unevaluated  {  def :  self . def ,  substs :  self . substs  } 
2455+     pub  fn  shrink ( self )  -> ty:: UnevaluatedConst < ' tcx >  { 
2456+         ty:: UnevaluatedConst  {  def :  self . def ,  substs :  self . substs  } 
24572457    } 
24582458} 
24592459
2460- impl < ' tcx >  Unevaluated < ' tcx >  { 
2460+ impl < ' tcx >  UnevaluatedConst < ' tcx >  { 
24612461    #[ inline]  
2462-     pub  fn  new ( def :  ty:: WithOptConstParam < DefId > ,  substs :  SubstsRef < ' tcx > )  -> Unevaluated < ' tcx >  { 
2463-         Unevaluated  {  def,  substs,  promoted :  Default :: default ( )  } 
2462+     pub  fn  new ( 
2463+         def :  ty:: WithOptConstParam < DefId > , 
2464+         substs :  SubstsRef < ' tcx > , 
2465+     )  -> UnevaluatedConst < ' tcx >  { 
2466+         UnevaluatedConst  {  def,  substs,  promoted :  Default :: default ( )  } 
24642467    } 
24652468} 
24662469
0 commit comments