Skip to content

Commit ed72977

Browse files
Remove unnecessary type annotations
1 parent e62fa27 commit ed72977

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_mir/borrow_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
947947
(sd, place_span.0),
948948
&borrow_set,
949949
flow_state.borrows_in_scope(),
950-
|this: &mut Self, borrow_index: BorrowIndex, borrow: &BorrowData<'tcx>|
950+
|this, borrow_index, borrow|
951951
match (rw, borrow.kind) {
952952
// Obviously an activation is compatible with its own
953953
// reservation (or even prior activating uses of same

src/librustc_mir/borrow_check/nll/invalidation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use borrow_check::borrow_set::{BorrowSet, BorrowData};
11+
use borrow_check::borrow_set::BorrowSet;
1212
use borrow_check::location::LocationTable;
1313
use borrow_check::{JustWrite, WriteAndRead};
1414
use borrow_check::{ShallowOrDeep, Deep, Shallow};
@@ -496,7 +496,7 @@ impl<'cg, 'cx, 'tcx, 'gcx> InvalidationGenerator<'cg, 'cx, 'tcx, 'gcx> {
496496
(sd, place),
497497
&borrow_set.clone(),
498498
indices,
499-
|this: &mut Self, borrow_index: BorrowIndex, borrow: &BorrowData<'tcx>| {
499+
|this, borrow_index, borrow| {
500500
match (rw, borrow.kind) {
501501
// Obviously an activation is compatible with its own
502502
// reservation (or even prior activating uses of same

0 commit comments

Comments
 (0)