Skip to content

Commit bf45e9f

Browse files
committed
InterpCx store TypingEnv instead of a ParamEnv
1 parent a4acd22 commit bf45e9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/intrinsics/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
744744

745745
let const_val = fx
746746
.tcx
747-
.const_eval_instance(ty::ParamEnv::reveal_all(), instance, source_info.span)
747+
.const_eval_instance(
748+
ty::TypingEnv::fully_monomorphized(),
749+
instance,
750+
source_info.span,
751+
)
748752
.unwrap();
749753
let val = crate::constant::codegen_const_value(fx, const_val, ret.layout().ty);
750754
ret.write_cvalue(fx, val);

0 commit comments

Comments
 (0)