Skip to content

Commit 3021856

Browse files
committed
Fix some wrong dereferences after rebase
1 parent a13a7d7 commit 3021856

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_mir/borrow_check/diagnostics/conflict_errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
699699
let root_place_projection = self.infcx.tcx.intern_place_elems(root_place.projection);
700700

701701
if self.access_place_error_reported.contains(&(
702-
Place { local: *root_place.local, projection: root_place_projection },
702+
Place { local: root_place.local, projection: root_place_projection },
703703
borrow_span,
704704
)) {
705705
debug!(
@@ -710,7 +710,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
710710
}
711711

712712
self.access_place_error_reported.insert((
713-
Place { local: *root_place.local, projection: root_place_projection },
713+
Place { local: root_place.local, projection: root_place_projection },
714714
borrow_span,
715715
));
716716

src/librustc_mir_build/build/matches/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
12581258
.into_iter()
12591259
.map(|matched_place_ref| {
12601260
let matched_place = Place {
1261-
local: *matched_place_ref.local,
1261+
local: matched_place_ref.local,
12621262
projection: tcx.intern_place_elems(matched_place_ref.projection),
12631263
};
12641264
let fake_borrow_deref_ty = matched_place.ty(&self.local_decls, tcx).ty;

0 commit comments

Comments
 (0)