Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 274b927

Browse files
committedJan 11, 2019
fix
1 parent 2363852 commit 274b927

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/libarena/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern crate smallvec;
2727
extern crate rustc_data_structures;
2828

2929
use rustc_data_structures::sync::MTLock;
30+
#[allow(unused_imports)]
3031
use smallvec::SmallVec;
3132

3233
use std::cell::{Cell, RefCell};
@@ -194,6 +195,7 @@ impl<T> TypedArena<T> {
194195
}
195196
}
196197

198+
#[allow(unreachable_code)]
197199
pub fn alloc_from_iter<I: IntoIterator<Item=T>>(&self, iter: I) -> &[T] where T: Clone {
198200
assert!(mem::size_of::<T>() != 0);
199201
let vec: Vec<_> = iter.into_iter().collect();

0 commit comments

Comments
 (0)
Please sign in to comment.