We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab679de + 50b6f46 commit 98a2de4Copy full SHA for 98a2de4
compiler/rustc_ast_lowering/src/item.rs
@@ -1623,12 +1623,10 @@ impl<'hir> LoweringContext<'_, 'hir> {
1623
.lower_generic_params(bound_generic_params, hir::GenericParamSource::Binder),
1624
bounded_ty: self
1625
.lower_ty(bounded_ty, &ImplTraitContext::Disallowed(ImplTraitPosition::Bound)),
1626
- bounds: self.arena.alloc_from_iter(bounds.iter().map(|bound| {
1627
- self.lower_param_bound(
1628
- bound,
1629
- &ImplTraitContext::Disallowed(ImplTraitPosition::Bound),
1630
- )
1631
- })),
+ bounds: self.lower_param_bounds(
+ bounds,
+ &ImplTraitContext::Disallowed(ImplTraitPosition::Bound),
+ ),
1632
span: self.lower_span(*span),
1633
origin: PredicateOrigin::WhereClause,
1634
}),
0 commit comments