diff options
| author | lcnr <rust@lcnr.de> | 2024-10-31 12:22:05 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-10-31 12:43:22 +0100 |
| commit | aab149b58ca47b19a8e1e1673b9fbc367f984c59 (patch) | |
| tree | 8b5661e5134ca69d1386383ab79655d17da8ef30 /compiler/rustc_const_eval/src/check_consts/mod.rs | |
| parent | 84295b917d9c29bb1d1cae9b24cf68d6b0d47d54 (diff) | |
| download | rust-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.rs | 7 |
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 } } |
