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();