Skip to content

Commit a9eb450

Browse files
ivarflakstadoli-obk
authored andcommitted
Use existing typing env when building infer context
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
1 parent 84f6c61 commit a9eb450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
237237
let (infcx, param_env) = self
238238
.tcx
239239
.infer_ctxt()
240-
.build_with_typing_env(ty::TypingEnv::fully_monomorphized());
240+
.build_with_typing_env(self.typing_env);
241241

242242
let type_impls_trait = preds.iter().all(|pred| {
243243
let trait_ref = ty::TraitRef::new(tcx, pred.def_id(), [tp_ty]);

0 commit comments

Comments
 (0)