Skip to content

Commit

Permalink
Make params be SmallVec as originally was
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jun 3, 2022
1 parent 15a82d6 commit b051fca
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 b051fca

Please sign in to comment.