diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2022-09-14 17:40:51 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-09-14 17:40:51 -0300 |
| commit | 45d8049387e944bcfc31fcf72a7924f7067a7644 (patch) | |
| tree | dca46e54c4ca45ad3e3cc117c8d8a569abd1e04b | |
| parent | 861055094cb6cf21ab510d5591a3302c9b7260b1 (diff) | |
| download | rust-45d8049387e944bcfc31fcf72a7924f7067a7644.tar.gz rust-45d8049387e944bcfc31fcf72a7924f7067a7644.zip | |
Get rid of 'b lifetime in lower_param_bounds_mut
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index bda80c3eb19..cb6bf0863b3 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -2249,12 +2249,11 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { 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, bounds: &'s [GenericBound], - itctx: &'b ImplTraitContext, - ) -> impl Iterator<Item = hir::GenericBound<'hir>> + Captures<'s> + Captures<'a> + Captures<'b> - { + itctx: &'s ImplTraitContext, + ) -> impl Iterator<Item = hir::GenericBound<'hir>> + Captures<'s> + Captures<'a> { bounds.iter().map(move |bound| self.lower_param_bound(bound, itctx)) } |
