about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/intern.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-11-20 06:22:01 +0000
committerbors <bors@rust-lang.org>2024-11-20 06:22:01 +0000
commit70e814bd9e532a302763f870c665c5af59c2b632 (patch)
treee17f062fe5e3c01ed7127c9365d828e681d3c514 /compiler/rustc_const_eval/src/interpret/intern.rs
parentbcfea1f8d253fd43eab36832fa601d192ac603d5 (diff)
parent002efeb72ac465cf04660537ca902172ab0e491b (diff)
downloadrust-70e814bd9e532a302763f870c665c5af59c2b632.tar.gz
rust-70e814bd9e532a302763f870c665c5af59c2b632.zip
Auto merge of #133212 - lcnr:questionable-uwu, r=compiler-errors
continue `ParamEnv` to `TypingEnv` transition

cc #132279

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/intern.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/intern.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/intern.rs b/compiler/rustc_const_eval/src/interpret/intern.rs
index 7a1b92601a4..0cbb3b157f3 100644
--- a/compiler/rustc_const_eval/src/interpret/intern.rs
+++ b/compiler/rustc_const_eval/src/interpret/intern.rs
@@ -165,7 +165,7 @@ pub fn intern_const_alloc_recursive<'tcx, M: CompileTimeMachine<'tcx, const_eval
         InternKind::Static(Mutability::Not) => {
             (
                 // Outermost allocation is mutable if `!Freeze`.
-                if ret.layout.ty.is_freeze(*ecx.tcx, ecx.param_env) {
+                if ret.layout.ty.is_freeze(*ecx.tcx, ecx.typing_env) {
                     Mutability::Not
                 } else {
                     Mutability::Mut