Files
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
..
2019-11-29 20:25:07 -08:00
2020-01-27 21:39:51 +01:00
2019-12-22 17:42:47 -05:00
2019-12-22 17:42:47 -05:00
2020-02-11 13:16:20 +01:00
2019-12-22 17:42:47 -05:00
2020-02-11 13:16:20 +01:00
2019-08-04 14:50:26 +02:00
2019-12-26 05:04:46 -08:00
2019-09-27 17:36:45 -04:00
2020-01-27 21:39:51 +01:00
2019-12-22 17:42:47 -05:00
2020-01-27 21:39:51 +01:00
2019-11-29 20:25:07 -08:00
2020-01-31 13:41:07 -06:00