From: Oliver Scherer Date: Tue, 16 Oct 2018 15:19:25 +0000 (+0200) Subject: Derives often have very strict bounds X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=5075174c465ee868937517aba69ff5df5878a69d;p=rust.git Derives often have very strict bounds --- 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