We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e32328b + 549a68b commit 0fbb011Copy full SHA for 0fbb011
compiler/rustc_borrowck/src/consumers.rs
@@ -31,7 +31,7 @@ pub fn get_body_with_borrowck_facts<'tcx>(
31
def: ty::WithOptConstParam<LocalDefId>,
32
) -> BodyWithBorrowckFacts<'tcx> {
33
let (input_body, promoted) = tcx.mir_promoted(def);
34
- tcx.infer_ctxt().enter(|infcx| {
+ tcx.infer_ctxt().with_opaque_type_inference(def.did).enter(|infcx| {
35
let input_body: &Body<'_> = &input_body.borrow();
36
let promoted: &IndexVec<_, _> = &promoted.borrow();
37
*super::do_mir_borrowck(&infcx, input_body, promoted, true).1.unwrap()
0 commit comments