We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InterpCx
TypingEnv
ParamEnv
1 parent a4acd22 commit bf45e9fCopy full SHA for bf45e9f
src/intrinsics/mod.rs
@@ -744,7 +744,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
744
745
let const_val = fx
746
.tcx
747
- .const_eval_instance(ty::ParamEnv::reveal_all(), instance, source_info.span)
+ .const_eval_instance(
748
+ ty::TypingEnv::fully_monomorphized(),
749
+ instance,
750
+ source_info.span,
751
+ )
752
.unwrap();
753
let val = crate::constant::codegen_const_value(fx, const_val, ret.layout().ty);
754
ret.write_cvalue(fx, val);
0 commit comments