]> git.lizzy.rs Git - rust.git/commitdiff
Make PlaceRef lifetimes of move_path_closest_to be both 'tcx
authorSantiago Pastorino <spastorino@gmail.com>
Wed, 4 Mar 2020 17:02:11 +0000 (14:02 -0300)
committerSantiago Pastorino <spastorino@gmail.com>
Wed, 4 Mar 2020 17:02:11 +0000 (14:02 -0300)
src/librustc_mir/borrow_check/mod.rs

index fb3338f998d4aae632d8dedc9d1273c00ee5aa96..49c499fb62dbd5cc699ae782c75ce302c9310a6e 100644 (file)
@@ -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)