From 274b927fa8680ee3d117e0cf5256a217f36cb649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Fri, 11 Jan 2019 07:01:36 +0100 Subject: [PATCH] fix --- src/libarena/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs index 29557e743b998..163325cb711d8 100644 --- a/src/libarena/lib.rs +++ b/src/libarena/lib.rs @@ -27,6 +27,7 @@ extern crate smallvec; extern crate rustc_data_structures; use rustc_data_structures::sync::MTLock; +#[allow(unused_imports)] use smallvec::SmallVec; use std::cell::{Cell, RefCell}; @@ -194,6 +195,7 @@ impl TypedArena { } } + #[allow(unreachable_code)] pub fn alloc_from_iter>(&self, iter: I) -> &[T] where T: Clone { assert!(mem::size_of::() != 0); let vec: Vec<_> = iter.into_iter().collect();