Make PlaceRef lifetimes of borrowed_content_source be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 17:47:00 -03:00
parent eb67eca74a
commit a30f55f4b2
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,
) {