rust/src/liballoc
Yuki Okushi 5fbfaacab3
Rollup merge of #69058 - TimDiekmann:box, r=Amanieu
Preparation for allocator aware `Box`

This cleans up the `Box` code a bit, and uses `Box::from_raw(ptr)` instead of `Box(ptr)`.
Additionally, `box_free` and `exchange_malloc` now uses the `AllocRef` trait and a comment was added on how `box_free` is tied to `Box`.

This a preparation for an upcoming PR, which makes `Box` aware of an allocator.

r? @Amanieu
2020-02-12 18:55:48 +09:00
..
alloc liballoc: ignore tests in Miri instead of removing them entirely 2019-12-07 12:42:19 +01:00
benches Create benchmarks for BTreeMap::range 2020-02-07 00:57:54 +01:00
collections Rollup merge of #68834 - ssomers:btree_first_last_fix68829, r=KodrAus 2020-02-09 00:53:52 +01:00
prelude Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
raw_vec Rename Alloc to AllocRef 2020-01-27 21:39:51 +01:00
rc Format the world 2019-12-22 17:42:47 -05:00
sync Format the world 2019-12-22 17:42:47 -05:00
tests Rollup merge of #68738 - kennytm:derive-clone-eq-for-fromutf8error, r=sfackler 2020-02-09 18:23:28 +01:00
alloc.rs Preparation for allocator aware Box 2020-02-11 13:16:20 +01:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
boxed.rs Preparation for allocator aware Box 2020-02-11 13:16:20 +01:00
Cargo.toml bump rand to fix Miri failures 2019-08-04 14:50:26 +02:00
fmt.rs Remove redundant link texts 2019-12-26 05:04:46 -08:00
lib.rs Add #![doc(html_playground_url = ...)] to alloc crate 2020-01-30 21:14:39 +00:00
macros.rs Scope format! temporaries 2019-09-27 17:36:45 -04:00
raw_vec.rs Remove common usage pattern from AllocRef 2020-02-10 18:38:09 +01:00
rc.rs Rename Alloc to AllocRef 2020-01-27 21:39:51 +01:00
slice.rs reuse capacity variable in slice::repeat 2019-12-24 12:44:05 +08:00
str.rs Format the world 2019-12-22 17:42:47 -05:00
string.rs Rollup merge of #68742 - tspiteri:string-as-mut, r=sfackler 2020-02-09 18:23:30 +01:00
sync.rs Rename Alloc to AllocRef 2020-01-27 21:39:51 +01:00
tests.rs Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
vec.rs Fixed issue 68593 2020-01-31 13:41:07 -06:00