Skip to content

Commit 634a167

Browse files
committed
Make PlaceRef lifetimes of move_path_for_place be both 'tcx
1 parent e32ee55 commit 634a167

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
17231723
}
17241724
}
17251725

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

0 commit comments

Comments
 (0)