diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2019-07-03 21:39:12 +0200 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2019-07-20 05:08:39 +0200 |
| commit | ec65db07ef4cf75d0944f43a1bc1f1bd18da6545 (patch) | |
| tree | 981ef1e9258f4982927edf1de4c72ffbfb0d9c95 /src | |
| parent | 17953185f8626df519e28632cdd14425b4c237c2 (diff) | |
| download | rust-ec65db07ef4cf75d0944f43a1bc1f1bd18da6545.tar.gz rust-ec65db07ef4cf75d0944f43a1bc1f1bd18da6545.zip | |
Remove explicit lifetime
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/borrow_check/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/borrow_check/mod.rs b/src/librustc_mir/borrow_check/mod.rs index cc2cd94b1d8..bebdd68cb05 100644 --- a/src/librustc_mir/borrow_check/mod.rs +++ b/src/librustc_mir/borrow_check/mod.rs @@ -1702,10 +1702,10 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { /// An Err result includes a tag indicated why the search failed. /// Currently this can only occur if the place is built off of a /// static variable, as we do not track those in the MoveData. - fn move_path_closest_to<'a>( + fn move_path_closest_to( &mut self, - place: &'a Place<'tcx>, - ) -> Result<(Place<'tcx>, MovePathIndex), NoMovePathFound> where 'cx: 'a { + place: &Place<'tcx>, + ) -> Result<(Place<'tcx>, MovePathIndex), NoMovePathFound> { let mut last_prefix = &place.base; for prefix in self.prefixes(&place.base, &place.projection, PrefixSet::All) { |
