Skip to content

Commit 2233af4

Browse files
committed
Merge pull request #21 from fenhl/rust-update
Update to latest Rust nightly
2 parents f6850fc + 2c72e07 commit 2233af4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@
2828
//! assert_eq!(vec![(2, 20), (1, 10), (3, 30)], items);
2929
//! ```
3030
31-
#![feature(std_misc)]
32-
#![feature(alloc)]
33-
#![feature(core)]
31+
#![feature(hashmap_hasher)]
32+
#![feature(box_raw)]
33+
#![feature(iter_order)]
3434

3535
use std::borrow::Borrow;
36-
use std::boxed;
3736
use std::cmp::{PartialEq, Eq, Ordering};
3837
use std::collections::hash_map::{self, HashMap};
3938
use std::collections::hash_state::HashState;
@@ -117,7 +116,7 @@ impl<K: Hash + Eq, V, S: HashState> LinkedHashMap<K, V, S> {
117116
fn with_map(map: HashMap<KeyRef<K>, Box<LinkedHashMapEntry<K, V>>, S>) -> LinkedHashMap<K, V, S> {
118117
let map = LinkedHashMap {
119118
map: map,
120-
head: unsafe{ boxed::into_raw(Box::new(mem::uninitialized())) },
119+
head: unsafe{ Box::into_raw(Box::new(mem::uninitialized())) },
121120
};
122121
unsafe {
123122
(*map.head).next = map.head;

0 commit comments

Comments
 (0)