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