Skip to content

Commit

Permalink
Auto merge of #97670 - spastorino:simplify-universal-impl-trait-lower…
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jun 3, 2022
2 parents a6b8c69 + b051fca commit f15370b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_ast_lowering/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
.map(|predicate| self.lower_where_predicate(predicate)),
);

let mut params: Vec<_> = self.lower_generic_params_mut(&generics.params).collect();
let mut params: SmallVec<[hir::GenericParam<'hir>; 4]> =
self.lower_generic_params_mut(&generics.params).collect();
let has_where_clause = !generics.where_clause.predicates.is_empty();
let where_clause_span = self.lower_span(generics.where_clause.span);
let span = self.lower_span(generics.span);
Expand Down

0 comments on commit f15370b

Please sign in to comment.