rust/src/liballoc
bors c6807bb1b2 Auto merge of #52159 - SimonSapin:alloc-prelude, r=alexcrichton
Add the `alloc::prelude` module

It contains the re-exports that are in `std::prelude::v1` but not in `core::prelude::v1`.

Calling it prelude is somewhat of a misnomer since (unlike those modules in `std` or `core`) its contents are never implicitly imported in modules. Rather it is intended to be used with an explicit glob import like `use alloc::prelude::*;`. However there is precedent for the same misnomer with `std::io::prelude`, for example.

This new module is unstable with the same feature name as the `alloc` care. They are proposed for stabilization together in RFC https://github.com/rust-lang/rfcs/pull/2480.
2018-07-09 14:29:59 +00:00
..
benches
collections add outlives annotations to BTreeMap 2018-07-02 11:49:33 -04:00
tests Add some unit tests for dangling Weak references 2018-07-07 01:41:30 +02:00
alloc.rs Rename OOM to allocation error 2018-06-18 21:41:24 +02:00
borrow.rs
boxed_test.rs
boxed.rs Implemented UnsafeFutureObj on Box 2018-07-02 19:21:32 +02:00
Cargo.toml
fmt.rs
lib.rs Add the alloc::prelude module 2018-07-07 23:08:43 +02:00
macros.rs
prelude.rs Add the alloc::prelude module 2018-07-07 23:08:43 +02:00
raw_vec.rs Move core::alloc::CollectionAllocErr to alloc::collections 2018-06-29 14:01:33 +02:00
rc.rs Rollup merge of #52103 - tmccombs:rc_downcast, r=Mark-Simulacrum 2018-07-06 21:29:17 -06:00
repeat-generic-slice.rs
slice.rs
str.rs Move some alloc crate top-level items to a new alloc::collections module 2018-06-29 14:01:33 +02:00
string.rs Move core::alloc::CollectionAllocErr to alloc::collections 2018-06-29 14:01:33 +02:00
sync.rs Rollup merge of #52103 - tmccombs:rc_downcast, r=Mark-Simulacrum 2018-07-06 21:29:17 -06:00
task.rs #[cfg(target_has_atomic_cas)] -> #[cfg(target_has_atomic = "cas")] 2018-07-05 16:52:46 -05:00
vec.rs Removed a single trailing space. Oops. 2018-07-09 06:31:24 +02:00