Make PlaceRef lifetimes of move_path_closest_to be both 'tcx
This commit is contained in:
parent
6200f5c362
commit
e32ee55a36
@ -1713,8 +1713,8 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
|
|||||||
/// static variable, as we do not track those in the MoveData.
|
/// static variable, as we do not track those in the MoveData.
|
||||||
fn move_path_closest_to(
|
fn move_path_closest_to(
|
||||||
&mut self,
|
&mut self,
|
||||||
place: PlaceRef<'_, 'tcx>,
|
place: PlaceRef<'tcx, 'tcx>,
|
||||||
) -> (PlaceRef<'cx, 'tcx>, MovePathIndex) {
|
) -> (PlaceRef<'tcx, 'tcx>, MovePathIndex) {
|
||||||
match self.move_data.rev_lookup.find(place) {
|
match self.move_data.rev_lookup.find(place) {
|
||||||
LookupResult::Parent(Some(mpi)) | LookupResult::Exact(mpi) => {
|
LookupResult::Parent(Some(mpi)) | LookupResult::Exact(mpi) => {
|
||||||
(self.move_data.move_paths[mpi].place.as_ref(), mpi)
|
(self.move_data.move_paths[mpi].place.as_ref(), mpi)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user