1
Fork 0

Get rid of 'b lifetime in lower_param_bounds_mut

This commit is contained in:
Santiago Pastorino 2022-09-14 17:40:51 -03:00
parent 861055094c
commit 45d8049387
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -2249,12 +2249,11 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
self.arena.alloc_from_iter(self.lower_param_bounds_mut(bounds, itctx)) self.arena.alloc_from_iter(self.lower_param_bounds_mut(bounds, itctx))
} }
fn lower_param_bounds_mut<'s, 'b>( fn lower_param_bounds_mut<'s>(
&'s mut self, &'s mut self,
bounds: &'s [GenericBound], bounds: &'s [GenericBound],
itctx: &'b ImplTraitContext, itctx: &'s ImplTraitContext,
) -> impl Iterator<Item = hir::GenericBound<'hir>> + Captures<'s> + Captures<'a> + Captures<'b> ) -> impl Iterator<Item = hir::GenericBound<'hir>> + Captures<'s> + Captures<'a> {
{
bounds.iter().map(move |bound| self.lower_param_bound(bound, itctx)) bounds.iter().map(move |bound| self.lower_param_bound(bound, itctx))
} }