Skip to content

Commit edf0cac

Browse files
committed
Use ensure for borrowck
1 parent 8d76060 commit edf0cac

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_borrowck/borrowck

1 file changed

+1
-1
lines changed

src/librustc_borrowck/borrowck/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub type LoanDataFlow<'a, 'tcx> = DataFlowContext<'a, 'tcx, LoanDataFlowOperator
5757

5858
pub fn check_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
5959
tcx.par_body_owners(|body_owner_def_id| {
60-
tcx.borrowck(body_owner_def_id);
60+
tcx.ensure().borrowck(body_owner_def_id);
6161
});
6262
}
6363

0 commit comments

Comments
 (0)