Skip to content

Commit ec65db0

Browse files
committed
Remove explicit lifetime
1 parent 1795318 commit ec65db0

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,10 +1702,10 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
17021702
/// An Err result includes a tag indicated why the search failed.
17031703
/// Currently this can only occur if the place is built off of a
17041704
/// static variable, as we do not track those in the MoveData.
1705-
fn move_path_closest_to<'a>(
1705+
fn move_path_closest_to(
17061706
&mut self,
1707-
place: &'a Place<'tcx>,
1708-
) -> Result<(Place<'tcx>, MovePathIndex), NoMovePathFound> where 'cx: 'a {
1707+
place: &Place<'tcx>,
1708+
) -> Result<(Place<'tcx>, MovePathIndex), NoMovePathFound> {
17091709
let mut last_prefix = &place.base;
17101710

17111711
for prefix in self.prefixes(&place.base, &place.projection, PrefixSet::All) {

0 commit comments

Comments
 (0)