Skip to content

Commit df3afc4

Browse files
committed
w
1 parent c55b6af commit df3afc4

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ impl<'tcx> BorrowckInferCtxt<'tcx> {
551551
} else {
552552
TypingMode::analysis_in_body(tcx, def_id)
553553
};
554-
let infcx = tcx.infer_ctxt().build(typing_mode);
554+
let infcx = tcx.infer_ctxt().in_hir_typeck().build(typing_mode);
555555
let param_env = tcx.param_env(def_id);
556556
BorrowckInferCtxt { infcx, reg_var_to_origin: RefCell::new(Default::default()), param_env }
557557
}

0 commit comments

Comments
 (0)