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.
1 parent c55b6af commit df3afc4Copy full SHA for df3afc4
compiler/rustc_borrowck/src/lib.rs
@@ -551,7 +551,7 @@ impl<'tcx> BorrowckInferCtxt<'tcx> {
551
} else {
552
TypingMode::analysis_in_body(tcx, def_id)
553
};
554
- let infcx = tcx.infer_ctxt().build(typing_mode);
+ let infcx = tcx.infer_ctxt().in_hir_typeck().build(typing_mode);
555
let param_env = tcx.param_env(def_id);
556
BorrowckInferCtxt { infcx, reg_var_to_origin: RefCell::new(Default::default()), param_env }
557
}
0 commit comments