Make PlaceRef lifetimes of move_spans be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 18:05:37 -03:00
parent a30f55f4b2
commit bd4dad4281
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View 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::*;