mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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.
|
||||
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