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
)
This commit is contained in:
parent
03f198fcee
commit
2ed0f516dd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue