]> git.lizzy.rs Git - rust.git/commitdiff
Make PlaceRef lifetimes of move_spans be both 'tcx
authorSantiago Pastorino <spastorino@gmail.com>
Wed, 4 Mar 2020 21:05:37 +0000 (18:05 -0300)
committerSantiago Pastorino <spastorino@gmail.com>
Wed, 4 Mar 2020 21:05:37 +0000 (18:05 -0300)
src/librustc_mir/borrow_check/diagnostics/mod.rs

index e2d59ed3c6e871aa24ec451c91c4bd15668c791b..2565eeae06bc5d5afb606d4be5a9493a1c1c7b0c 100644 (file)
@@ -694,7 +694,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
     /// Finds the spans associated to a move or copy of move_place at location.
     pub(super) fn move_spans(
         &self,
-        moved_place: PlaceRef<'cx, 'tcx>, // Could also be an upvar.
+        moved_place: PlaceRef<'tcx, 'tcx>, // Could also be an upvar.
         location: Location,
     ) -> UseSpans {
         use self::UseSpans::*;