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 Move deny(warnings) into rustbuild 2018-04-08 16:59:14 -06:00
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 Add #[must_use] to a few standard library methods 2018-03-30 23:06:05 -07:00
boxed.rs Implemented UnsafeFutureObj on Box 2018-07-02 19:21:32 +02:00
boxed_test.rs Direct conversions between slices and boxes. 2017-02-06 18:53:13 -05:00
Cargo.toml Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
fmt.rs Reexport fmt::Alignment into std 2018-06-03 17:04:48 +02:00
lib.rs Add the alloc::prelude module 2018-07-07 23:08:43 +02:00
macros.rs fix some typos 2017-11-21 15:33:45 +01:00
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 Add run-pass test for repeat-generic-slice feature 2018-03-28 09:02:27 +02:00
slice.rs Rollup merge of #51147 - tmccombs:sliceindex, r=SimonSapin 2018-06-02 13:14:25 -06:00
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