diff options
| author | Felix S Klock II <pnkfelix@pnkfx.org> | 2019-03-26 13:18:17 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2019-04-04 18:50:03 +0100 |
| commit | 4ff459f76c93708c285c9e415b2880a4415438ef (patch) | |
| tree | b4922b69bf443e28d055aec821904dad46ce0d3c | |
| parent | b3f62660feb7419d2064e474e1e06e77c69b2b9d (diff) | |
| download | rust-4ff459f76c93708c285c9e415b2880a4415438ef.tar.gz rust-4ff459f76c93708c285c9e415b2880a4415438ef.zip | |
Fix out-of-date comment
A comment in one match arm make a blanket statement about "reads/reservations", but in fact the whole point of this PR is that reservations are *not* handled by that particular arm anymore.
| -rw-r--r-- | src/librustc_mir/borrow_check/nll/invalidation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/borrow_check/nll/invalidation.rs b/src/librustc_mir/borrow_check/nll/invalidation.rs index 2fde9924e36..9cbb3556017 100644 --- a/src/librustc_mir/borrow_check/nll/invalidation.rs +++ b/src/librustc_mir/borrow_check/nll/invalidation.rs @@ -432,7 +432,7 @@ impl<'cg, 'cx, 'tcx, 'gcx> InvalidationGenerator<'cx, 'tcx, 'gcx> { | (Read(_), BorrowKind::Shared) | (Read(ReadKind::Borrow(BorrowKind::Shallow)), BorrowKind::Unique) | (Read(ReadKind::Borrow(BorrowKind::Shallow)), BorrowKind::Mut { .. }) => { - // Reads/reservations don't invalidate shared or shallow borrows + // Reads don't invalidate shared or shallow borrows } (Read(_), BorrowKind::Unique) | (Read(_), BorrowKind::Mut { .. }) => { |
