about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-03-04 14:02:11 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-03-04 14:02:11 -0300
commite32ee55a365712ef2cca97c0e37a8e56efecafd2 (patch)
tree4aa852b6e5d5350c912b39a2c061b7b178e84758
parent6200f5c362172431279cd4feed4bd20beb7e2c7e (diff)
downloadrust-e32ee55a365712ef2cca97c0e37a8e56efecafd2.tar.gz
rust-e32ee55a365712ef2cca97c0e37a8e56efecafd2.zip
Make PlaceRef lifetimes of move_path_closest_to be both 'tcx
-rw-r--r--src/librustc_mir/borrow_check/mod.rs4
1 files changed, 2 insertions, 2 deletions
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 @@ 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)