1
Fork 0

Remove in_band_lifetimes from borrowck

This commit is contained in:
Dániel Buga 2021-12-15 08:38:12 +01:00
parent 195e931b02
commit e837101890
15 changed files with 32 additions and 33 deletions

View file

@ -1598,8 +1598,8 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
location: Location,
mpi: MovePathIndex,
) -> (Vec<MoveSite>, Vec<Location>) {
fn predecessor_locations(
body: &'a mir::Body<'tcx>,
fn predecessor_locations<'a>(
body: &'a mir::Body<'_>,
location: Location,
) -> impl Iterator<Item = Location> + 'a {
if location.statement_index == 0 {