Skip to content

Commit 4ff459f

Browse files
pnkfelixmatthewjasper
authored andcommitted
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.
1 parent b3f6266 commit 4ff459f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/nll/invalidation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ impl<'cg, 'cx, 'tcx, 'gcx> InvalidationGenerator<'cx, 'tcx, 'gcx> {
432432
| (Read(_), BorrowKind::Shared)
433433
| (Read(ReadKind::Borrow(BorrowKind::Shallow)), BorrowKind::Unique)
434434
| (Read(ReadKind::Borrow(BorrowKind::Shallow)), BorrowKind::Mut { .. }) => {
435-
// Reads/reservations don't invalidate shared or shallow borrows
435+
// Reads don't invalidate shared or shallow borrows
436436
}
437437

438438
(Read(_), BorrowKind::Unique) | (Read(_), BorrowKind::Mut { .. }) => {

0 commit comments

Comments
 (0)