@@ -34,7 +34,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
3434 span : Span ,
3535) -> Result < ( ) , NotConstEvaluatable > {
3636 debug ! ( "is_const_evaluatable({:?})" , uv) ;
37- if infcx. tcx . features ( ) . const_evaluatable_checked {
37+ if infcx. tcx . features ( ) . generic_const_exprs {
3838 let tcx = infcx. tcx ;
3939 match AbstractConst :: new ( tcx, uv) ? {
4040 // We are looking at a generic abstract constant.
@@ -537,9 +537,9 @@ pub(super) fn mir_abstract_const<'tcx>(
537537 tcx : TyCtxt < ' tcx > ,
538538 def : ty:: WithOptConstParam < LocalDefId > ,
539539) -> Result < Option < & ' tcx [ mir:: abstract_const:: Node < ' tcx > ] > , ErrorReported > {
540- if tcx. features ( ) . const_evaluatable_checked {
540+ if tcx. features ( ) . generic_const_exprs {
541541 match tcx. def_kind ( def. did ) {
542- // FIXME(const_evaluatable_checked ): We currently only do this for anonymous constants,
542+ // FIXME(generic_const_exprs ): We currently only do this for anonymous constants,
543543 // meaning that we do not look into associated constants. I(@lcnr) am not yet sure whether
544544 // we want to look into them or treat them as opaque projections.
545545 //
@@ -568,7 +568,7 @@ pub(super) fn try_unify_abstract_consts<'tcx>(
568568 Ok ( false )
569569 } ) ( )
570570 . unwrap_or_else ( |ErrorReported | true )
571- // FIXME(const_evaluatable_checked ): We should instead have this
571+ // FIXME(generic_const_exprs ): We should instead have this
572572 // method return the resulting `ty::Const` and return `ConstKind::Error`
573573 // on `ErrorReported`.
574574}
@@ -656,13 +656,13 @@ pub(super) fn try_unify<'tcx>(
656656 // branch should only be taking when dealing with associated constants, at
657657 // which point directly comparing them seems like the desired behavior.
658658 //
659- // FIXME(const_evaluatable_checked ): This isn't actually the case.
659+ // FIXME(generic_const_exprs ): This isn't actually the case.
660660 // We also take this branch for concrete anonymous constants and
661661 // expand generic anonymous constants with concrete substs.
662662 ( ty:: ConstKind :: Unevaluated ( a_uv) , ty:: ConstKind :: Unevaluated ( b_uv) ) => {
663663 a_uv == b_uv
664664 }
665- // FIXME(const_evaluatable_checked ): We may want to either actually try
665+ // FIXME(generic_const_exprs ): We may want to either actually try
666666 // to evaluate `a_ct` and `b_ct` if they are are fully concrete or something like
667667 // this, for now we just return false here.
668668 _ => false ,
0 commit comments