Skip to content

Commit a30f55f

Browse files
committed
Make PlaceRef lifetimes of borrowed_content_source be both 'tcx
1 parent eb67eca commit a30f55f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/borrow_check/diagnostics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
399399

400400
pub(super) fn borrowed_content_source(
401401
&self,
402-
deref_base: PlaceRef<'cx, 'tcx>,
402+
deref_base: PlaceRef<'tcx, 'tcx>,
403403
) -> BorrowedContentSource<'tcx> {
404404
let tcx = self.infcx.tcx;
405405

src/librustc_mir/borrow_check/diagnostics/mutability_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
2323
&mut self,
2424
access_place: &Place<'tcx>,
2525
span: Span,
26-
the_place_err: PlaceRef<'cx, 'tcx>,
26+
the_place_err: PlaceRef<'tcx, 'tcx>,
2727
error_access: AccessKind,
2828
location: Location,
2929
) {

0 commit comments

Comments
 (0)