From: Santiago Pastorino Date: Wed, 4 Mar 2020 17:02:11 +0000 (-0300) Subject: Make PlaceRef lifetimes of move_path_closest_to be both 'tcx X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e32ee55a365712ef2cca97c0e37a8e56efecafd2;p=rust.git Make PlaceRef lifetimes of move_path_closest_to be both 'tcx --- diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index fb3338f998d..49c499fb62d 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs @@ -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)