Make PlaceRef lifetimes of borrowed_content_source be both 'tcx
This commit is contained in:
parent
eb67eca74a
commit
a30f55f4b2
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user