Skip to content

Commit

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

small cleanup

this is exactly the same as the `lower_param_bounds` function, so use that instead
  • Loading branch information
rust-timer authored Oct 11, 2023
2 parents c1691db + 50b6f46 commit 1e1e625
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 1e1e625

Please sign in to comment.