From 5075174c465ee868937517aba69ff5df5878a69d Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Tue, 16 Oct 2018 17:19:25 +0200 Subject: [PATCH] Derives often have very strict bounds --- src/bootstrap/cache.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/cache.rs b/src/bootstrap/cache.rs index 4a50f744e7a..fd9a1be2072 100644 --- a/src/bootstrap/cache.rs +++ b/src/bootstrap/cache.rs @@ -169,12 +169,20 @@ fn cmp(&self, other: &Self) -> Ordering { } } -#[derive(Default)] struct TyIntern { items: Vec, set: HashMap>, } +impl Default for TyIntern { + fn default() -> Self { + TyIntern { + items: Vec::new(), + set: Default::default(), + } + } +} + impl TyIntern { fn intern_borrow(&mut self, item: &B) -> Interned where -- 2.44.0