Skip to content

Commit bfa0e1f

Browse files
committed
Add RawVec to unify raw Vecish code
1 parent b5dad7d commit bfa0e1f

File tree

9 files changed

+631
-475
lines changed

9 files changed

+631
-475
lines changed

src/liballoc/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use core::hash::{self, Hash};
6262
use core::marker::Unsize;
6363
use core::mem;
6464
use core::ops::{CoerceUnsized, Deref, DerefMut};
65-
use core::ptr::{Unique};
65+
use core::ptr::Unique;
6666
use core::raw::{TraitObject};
6767

6868
/// A value that represents the heap. This is the default place that the `box`

src/liballoc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
#![feature(unique)]
8989
#![feature(unsafe_no_drop_flag, filling_drop)]
9090
#![feature(unsize)]
91+
#![feature(core_slice_ext)]
9192

9293
#![cfg_attr(test, feature(test, alloc, rustc_private, box_raw))]
9394
#![cfg_attr(all(not(feature = "external_funcs"), not(feature = "external_crate")),
@@ -122,6 +123,7 @@ mod boxed { pub use std::boxed::{Box, HEAP}; }
122123
mod boxed_test;
123124
pub mod arc;
124125
pub mod rc;
126+
pub mod raw_vec;
125127

126128
/// Common out-of-memory routine
127129
#[cold]

0 commit comments

Comments
 (0)