about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorEllen <supbscripter@gmail.com>2021-08-25 10:21:39 +0100
committerlcnr <rust@lcnr.de>2021-08-30 11:00:21 +0200
commitfcc2badf9b1e6d63c5221d206628ab1aaf3b5bdc (patch)
tree22cb7d48f1b3958d1edd0a15f3f4cba23907f93e /compiler/rustc_middle/src
parentdbb0fe9d803f7fa8688b33306266a6b054c2c3f4 (diff)
downloadrust-fcc2badf9b1e6d63c5221d206628ab1aaf3b5bdc.tar.gz
rust-fcc2badf9b1e6d63c5221d206628ab1aaf3b5bdc.zip
rename const_evaluatable_checked to generic_const_exprs
:sparkles:
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/relate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/relate.rs b/compiler/rustc_middle/src/ty/relate.rs
index 44981f171d5..9d1be212f5b 100644
--- a/compiler/rustc_middle/src/ty/relate.rs
+++ b/compiler/rustc_middle/src/ty/relate.rs
@@ -577,13 +577,13 @@ pub fn super_relate_consts<R: TypeRelation<'tcx>>(
         }
 
         (ty::ConstKind::Unevaluated(au), ty::ConstKind::Unevaluated(bu))
-            if tcx.features().const_evaluatable_checked =>
+            if tcx.features().generic_const_exprs =>
         {
             tcx.try_unify_abstract_consts((au.shrink(), bu.shrink()))
         }
 
         // While this is slightly incorrect, it shouldn't matter for `min_const_generics`
-        // and is the better alternative to waiting until `const_evaluatable_checked` can
+        // and is the better alternative to waiting until `generic_const_exprs` can
         // be stabilized.
         (ty::ConstKind::Unevaluated(au), ty::ConstKind::Unevaluated(bu))
             if au.def == bu.def && au.promoted == bu.promoted =>