about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/check_consts/mod.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2024-10-31 12:22:05 +0100
committerlcnr <rust@lcnr.de>2024-10-31 12:43:22 +0100
commitaab149b58ca47b19a8e1e1673b9fbc367f984c59 (patch)
tree8b5661e5134ca69d1386383ab79655d17da8ef30 /compiler/rustc_const_eval/src/check_consts/mod.rs
parent84295b917d9c29bb1d1cae9b24cf68d6b0d47d54 (diff)
downloadrust-aab149b58ca47b19a8e1e1673b9fbc367f984c59.tar.gz
rust-aab149b58ca47b19a8e1e1673b9fbc367f984c59.zip
`ConstCx` stop using `ParamEnv::reveal`
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/mod.rs')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/mod.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/mod.rs b/compiler/rustc_const_eval/src/check_consts/mod.rs
index 56da6791847..dcdaafaecc2 100644
--- a/compiler/rustc_const_eval/src/check_consts/mod.rs
+++ b/compiler/rustc_const_eval/src/check_consts/mod.rs
@@ -32,14 +32,7 @@ impl<'mir, 'tcx> ConstCx<'mir, 'tcx> {
     pub fn new(tcx: TyCtxt<'tcx>, body: &'mir mir::Body<'tcx>) -> Self {
         let def_id = body.source.def_id().expect_local();
         let param_env = tcx.param_env(def_id);
-        Self::new_with_param_env(tcx, body, param_env)
-    }
 
-    pub fn new_with_param_env(
-        tcx: TyCtxt<'tcx>,
-        body: &'mir mir::Body<'tcx>,
-        param_env: ty::ParamEnv<'tcx>,
-    ) -> Self {
         let const_kind = tcx.hir().body_const_context(body.source.def_id().expect_local());
         ConstCx { body, tcx, param_env, const_kind }
     }