1
Fork 0

Capture lifetimes for associated type bounds destined to be lowered to opaques

This commit is contained in:
Michael Goulet 2023-08-29 23:47:01 +00:00
parent b2515fa741
commit f1679f7dd6
3 changed files with 31 additions and 0 deletions

View file

@ -1109,6 +1109,7 @@ impl<'a: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast,
}
},
AssocConstraintKind::Bound { ref bounds } => {
self.record_lifetime_params_for_impl_trait(constraint.id);
walk_list!(self, visit_param_bound, bounds, BoundKind::Bound);
}
}