Skip to content

Commit

Permalink
Check for two_phase_borrows in the right place
Browse files Browse the repository at this point in the history
Fix a small compilation issue after I missed a critical change after rebasing
yesterday (ref c933440)
  • Loading branch information
sapphire-arches committed Mar 9, 2018
1 parent 03f198f commit 2ed0f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/dataflow/impls/borrows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl<'a, 'gcx, 'tcx> Borrows<'a, 'gcx, 'tcx> {
/// allowed to be split into separate Reservation and
/// Activation phases.
fn allow_two_phase_borrow(&self, kind: mir::BorrowKind) -> bool {
self.tcx.sess.two_phase_borrows() &&
self.tcx.two_phase_borrows() &&
(kind.allows_two_phase_borrow() ||
self.tcx.sess.opts.debugging_opts.two_phase_beyond_autoref)
}
Expand Down

0 comments on commit 2ed0f51

Please sign in to comment.