about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/lib.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-05-24 15:38:43 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-05-31 14:07:15 +0000
commitaa3a1862bac8b110a254501e2863801e24171813 (patch)
treedde2903907fc9fc8ba1e48e4dfa3b5123290febe /compiler/rustc_const_eval/src/lib.rs
parentd030ece6f795c74bbb005b9a6956e5da1b9f155d (diff)
downloadrust-aa3a1862bac8b110a254501e2863801e24171813.tar.gz
rust-aa3a1862bac8b110a254501e2863801e24171813.zip
Remove `deref_mir_constant`
Diffstat (limited to 'compiler/rustc_const_eval/src/lib.rs')
-rw-r--r--compiler/rustc_const_eval/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/lib.rs b/compiler/rustc_const_eval/src/lib.rs
index c36282d5ed4..0c48d99915a 100644
--- a/compiler/rustc_const_eval/src/lib.rs
+++ b/compiler/rustc_const_eval/src/lib.rs
@@ -56,10 +56,6 @@ pub fn provide(providers: &mut Providers) {
     providers.valtree_to_const_val = |tcx, (ty, valtree)| {
         const_eval::valtree_to_const_value(tcx, ty::ParamEnv::empty().and(ty), valtree)
     };
-    providers.deref_mir_constant = |tcx, param_env_and_value| {
-        let (param_env, value) = param_env_and_value.into_parts();
-        const_eval::deref_mir_constant(tcx, param_env, value)
-    };
     providers.check_validity_requirement = |tcx, (init_kind, param_env_and_ty)| {
         util::check_validity_requirement(tcx, init_kind, param_env_and_ty)
     };