Skip to content

Commit 2ed0f51

Browse files
Check for two_phase_borrows in the right place
Fix a small compilation issue after I missed a critical change after rebasing yesterday (ref c933440)
1 parent 03f198f commit 2ed0f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/dataflow/impls/borrows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> {
351351
/// allowed to be split into separate Reservation and
352352
/// Activation phases.
353353
fn allow_two_phase_borrow(&self, kind: mir::BorrowKind) -> bool {
354-
self.tcx.sess.two_phase_borrows() &&
354+
self.tcx.two_phase_borrows() &&
355355
(kind.allows_two_phase_borrow() ||
356356
self.tcx.sess.opts.debugging_opts.two_phase_beyond_autoref)
357357
}

0 commit comments

Comments
 (0)