We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2363852 commit 274b927Copy full SHA for 274b927
src/libarena/lib.rs
@@ -27,6 +27,7 @@ extern crate smallvec;
27
extern crate rustc_data_structures;
28
29
use rustc_data_structures::sync::MTLock;
30
+#[allow(unused_imports)]
31
use smallvec::SmallVec;
32
33
use std::cell::{Cell, RefCell};
@@ -194,6 +195,7 @@ impl<T> TypedArena<T> {
194
195
}
196
197
198
+ #[allow(unreachable_code)]
199
pub fn alloc_from_iter<I: IntoIterator<Item=T>>(&self, iter: I) -> &[T] where T: Clone {
200
assert!(mem::size_of::<T>() != 0);
201
let vec: Vec<_> = iter.into_iter().collect();
0 commit comments