rust/src/liballoc/tests
bors 127a11a344 Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieu
Overhaul of the `AllocRef` trait to match allocator-wg's latest consens; Take 2

GitHub won't let me reopen #69889 so I make a new PR.

In addition to #69889 this fixes the unsoundness of `RawVec::into_box` when using allocators supporting overallocating. Also it uses `MemoryBlock` in `AllocRef` to unify `_in_place` methods by passing `&mut MemoryBlock`. Additionally, `RawVec` now checks for `size_of::<T>()` again and ignore every ZST. The internal capacity of `RawVec` isn't used by ZSTs anymore, as `into_box` now requires a length to be specified.

r? @Amanieu

fixes rust-lang/wg-allocators#38
fixes rust-lang/wg-allocators#41
fixes rust-lang/wg-allocators#44
fixes rust-lang/wg-allocators#51
2020-04-02 06:08:35 +00:00
..
btree Rollup merge of #68770 - ssomers:btree_drain_filter, r=Amanieu 2020-04-01 00:27:18 +02:00
arc.rs Use drop instead of the toilet closure |_| () 2020-01-02 08:56:12 +00:00
binary_heap.rs Fix binary_heap::DrainSorted drop leak on panics 2020-01-19 20:23:07 +01:00
boxed.rs Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
cow_str.rs Small Cow improvements 2019-12-11 21:01:33 +01:00
fmt.rs Remove licenses 2018-12-25 21:08:33 -07:00
heap.rs Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
lib.rs BTreeMap/BTreeSet: implement and test drain_filter 2020-03-29 16:05:53 +02:00
linked_list.rs Format 2020-01-19 20:50:00 +01:00
rc.rs Use drop instead of the toilet closure |_| () 2020-01-02 08:56:12 +00:00
slice.rs reduce test size for Miri 2020-03-05 23:41:17 +01:00
str.rs Don't return empty slice on last iteration with matched terminator. Test reverse iteration. 2020-02-09 23:49:44 +09:00
string.rs must_use on split_off 2020-03-24 17:35:40 +00:00
vec.rs Format 2020-01-19 20:50:00 +01:00
vec_deque.rs Format 2020-01-19 20:50:00 +01:00