From 3371a75bead079011e3223c3a0f0925c8b360a3a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 23 Aug 2022 07:47:22 -0400 Subject: [PATCH] help with a Miri ICE --- compiler/rustc_infer/src/infer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs index 444817f396e56..b795f3d87c67c 100644 --- a/compiler/rustc_infer/src/infer/mod.rs +++ b/compiler/rustc_infer/src/infer/mod.rs @@ -550,7 +550,7 @@ impl<'tcx> TyCtxtInferExt<'tcx> for TyCtxt<'tcx> { fn infer_ctxt(self) -> InferCtxtBuilder<'tcx> { InferCtxtBuilder { tcx: self, - defining_use_anchor: DefiningAnchor::Error, + defining_use_anchor: DefiningAnchor::Bubble, considering_regions: true, fresh_typeck_results: None, }