Make PlaceRef lifetimes of move_path_for_place be both 'tcx

This commit is contained in:
Santiago Pastorino 2020-03-04 14:06:20 -03:00
parent e32ee55a36
commit 634a167e05
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -1723,7 +1723,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
}
}
fn move_path_for_place(&mut self, place: PlaceRef<'_, 'tcx>) -> Option<MovePathIndex> {
fn move_path_for_place(&mut self, place: PlaceRef<'tcx, 'tcx>) -> Option<MovePathIndex> {
// If returns None, then there is no move path corresponding
// to a direct owner of `place` (which means there is nothing
// that borrowck tracks for its analysis).