about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/check_consts/mod.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-10-12 20:37:35 +0200
committerRalf Jung <post@ralfj.de>2024-10-25 20:52:39 +0200
commit8849ac6042770500db91aca860ec8d86af2c74a3 (patch)
tree71e46c27b69586ca57b35052526aa8751b31fadf /compiler/rustc_const_eval/src/check_consts/mod.rs
parent36dda4571dc3b98ac9759b8af67887e170a426d7 (diff)
downloadrust-8849ac6042770500db91aca860ec8d86af2c74a3.tar.gz
rust-8849ac6042770500db91aca860ec8d86af2c74a3.zip
tcx.is_const_fn doesn't work the way it is described, remove it
Then we can rename the _raw functions to drop their suffix, and instead
explicitly use is_stable_const_fn for the few cases where that is really what
you want.
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/mod.rs')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/mod.rs b/compiler/rustc_const_eval/src/check_consts/mod.rs
index 146b559f2d7..56da6791847 100644
--- a/compiler/rustc_const_eval/src/check_consts/mod.rs
+++ b/compiler/rustc_const_eval/src/check_consts/mod.rs
@@ -112,7 +112,7 @@ pub fn is_safe_to_expose_on_stable_const_fn(tcx: TyCtxt<'_>, def_id: DefId) -> b
     }
 
     // Const-stability is only relevant for `const fn`.
-    assert!(tcx.is_const_fn_raw(def_id));
+    assert!(tcx.is_const_fn(def_id));
 
     match tcx.lookup_const_stability(def_id) {
         None => {