Skip to content

Commit

Permalink
Make PlaceRef lifetimes of borrowed_content_source be both 'tcx
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Mar 4, 2020
1 parent eb67eca commit a30f55f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_mir/borrow_check/diagnostics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {

pub(super) fn borrowed_content_source(
&self,
deref_base: PlaceRef<'cx, 'tcx>,
deref_base: PlaceRef<'tcx, 'tcx>,
) -> BorrowedContentSource<'tcx> {
let tcx = self.infcx.tcx;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
&mut self,
access_place: &Place<'tcx>,
span: Span,
the_place_err: PlaceRef<'cx, 'tcx>,
the_place_err: PlaceRef<'tcx, 'tcx>,
error_access: AccessKind,
location: Location,
) {
Expand Down

0 comments on commit a30f55f

Please sign in to comment.