Skip to content

Commit

Permalink
Rollup merge of #116627 - fee1-dead-contrib:cleanup, r=spastorino
Browse files Browse the repository at this point in the history
small cleanup

this is exactly the same as the `lower_param_bounds` function, so use that instead
  • Loading branch information
matthiaskrgr authored Oct 11, 2023
2 parents ab679de + 50b6f46 commit 98a2de4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions compiler/rustc_ast_lowering/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1623,12 +1623,10 @@ impl<'hir> LoweringContext<'_, 'hir> {
.lower_generic_params(bound_generic_params, hir::GenericParamSource::Binder),
bounded_ty: self
.lower_ty(bounded_ty, &ImplTraitContext::Disallowed(ImplTraitPosition::Bound)),
bounds: self.arena.alloc_from_iter(bounds.iter().map(|bound| {
self.lower_param_bound(
bound,
&ImplTraitContext::Disallowed(ImplTraitPosition::Bound),
)
})),
bounds: self.lower_param_bounds(
bounds,
&ImplTraitContext::Disallowed(ImplTraitPosition::Bound),
),
span: self.lower_span(*span),
origin: PredicateOrigin::WhereClause,
}),
Expand Down

0 comments on commit 98a2de4

Please sign in to comment.