From ac8c0f4008d379d834fb08841f601cbe365c0c07 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Mon, 30 Dec 2019 23:25:47 +0100 Subject: [PATCH] Enlarge smallvec. --- src/librustc/hir/lowering.rs | 2 +- src/librustc/hir/lowering/item.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs index 1aade02958524..15eee3cad7f58 100644 --- a/src/librustc/hir/lowering.rs +++ b/src/librustc/hir/lowering.rs @@ -3298,7 +3298,7 @@ fn body_ids(bodies: &BTreeMap>) -> Vec /// Helper struct for delayed construction of GenericArgs. struct GenericArgsCtor<'hir> { - args: SmallVec<[hir::GenericArg<'hir>; 1]>, + args: SmallVec<[hir::GenericArg<'hir>; 4]>, bindings: &'hir [hir::TypeBinding<'hir>], parenthesized: bool, } diff --git a/src/librustc/hir/lowering/item.rs b/src/librustc/hir/lowering/item.rs index 8c34aed5d5f53..6f1088de6c21d 100644 --- a/src/librustc/hir/lowering/item.rs +++ b/src/librustc/hir/lowering/item.rs @@ -1424,7 +1424,7 @@ impl<'hir> LoweringContext<'_, 'hir> { /// Helper struct for delayed construction of Generics. pub(super) struct GenericsCtor<'hir> { - pub(super) params: SmallVec<[hir::GenericParam<'hir>; 1]>, + pub(super) params: SmallVec<[hir::GenericParam<'hir>; 4]>, where_clause: hir::WhereClause<'hir>, span: Span, }