Use ensure for mir_borrowck

This commit is contained in:
John Kåre Alsaker 2019-01-31 17:47:33 +01:00
parent 0e2ad51e36
commit ee229f7fd0

View File

@ -1283,7 +1283,7 @@ where
time(sess,
"MIR borrow checking",
|| tcx.par_body_owners(|def_id| { tcx.mir_borrowck(def_id); }));
|| tcx.par_body_owners(|def_id| { tcx.ensure().mir_borrowck(def_id); }));
time(sess, "dumping chalk-like clauses", || {
rustc_traits::lowering::dump_program_clauses(tcx);