Skip to content

Commit e32ee55

Browse files
committed
Make PlaceRef lifetimes of move_path_closest_to be both 'tcx
1 parent 6200f5c commit e32ee55

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+2
-2
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,8 +1713,8 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
17131713
/// static variable, as we do not track those in the MoveData.
17141714
fn move_path_closest_to(
17151715
&mut self,
1716-
place: PlaceRef<'_, 'tcx>,
1717-
) -> (PlaceRef<'cx, 'tcx>, MovePathIndex) {
1716+
place: PlaceRef<'tcx, 'tcx>,
1717+
) -> (PlaceRef<'tcx, 'tcx>, MovePathIndex) {
17181718
match self.move_data.rev_lookup.find(place) {
17191719
LookupResult::Parent(Some(mpi)) | LookupResult::Exact(mpi) => {
17201720
(self.move_data.move_paths[mpi].place.as_ref(), mpi)

0 commit comments

Comments
 (0)