rust/src/liballoc
Mazdak Farrokhzad 1b66a13540
Rollup merge of #61244 - RalfJung:box, r=rkruppe
Box::into_vec: use Box::into_raw instead of mem::forget

`Box::into_raw` does, in one step, turn the `Box` into a raw ptr and avoid deallocation.  Seems cleaner than separating the two.

Also, `mem::forget` gets the `Box` with a `noalias` argument, but it is not actually correct that this is an exclusive pointer. So a stricter version of Stacked Borrows would complain here. (I can't actually make Stacked Borrows that strict yet though due to other issues.)
2019-05-30 10:52:55 +02:00
..
benches improve worst-case performance of BTreeSet difference and intersection 2019-03-29 12:18:20 +01:00
collections Revert "Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators." 2019-05-22 14:09:34 -07:00
prelude Stabilize the alloc crate. 2019-04-12 20:07:30 +02:00
tests add test checking that Vec push/pop does not invalidate pointers 2019-05-25 10:11:00 +02:00
alloc.rs Fix intra-doc link resolution failure on re-exporting libstd 2019-05-04 23:48:57 +09:00
borrow.rs warn(missing_docs) in liballoc, and add missing docs 2019-04-15 16:35:50 +02:00
boxed.rs Update src/liballoc/boxed.rs 2019-05-27 22:42:50 +03:00
boxed_test.rs liballoc: revert nested imports style changes. 2019-02-03 08:27:44 +01:00
Cargo.toml Update the compiler_builtins crate 2019-05-17 07:17:15 -07:00
fmt.rs Make clear that format padding doesn't work for Debug 2019-04-13 15:39:49 +10:00
lib.rs stabilize core parts of MaybeUninit and deprecate mem::uninitialized in the future 2019-05-20 10:44:02 +02:00
macros.rs Bootstrap compiler update for 1.35 release 2019-03-02 09:05:34 -07:00
raw_vec.rs avoid materializing unintialized Boxes in RawVec 2019-05-27 11:15:31 +03:00
rc.rs rc::Weak::{as,from,into}_raw 2019-05-26 08:53:59 +02:00
slice.rs Box::into_vec: use Box::into_raw instead of mem::forget 2019-05-27 22:40:28 +02:00
str.rs Implement BorrowMut<str> for String 2019-04-30 17:50:38 +09:00
string.rs Revert "Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators." 2019-05-22 14:09:34 -07:00
sync.rs sync::Weak::{as,from,into}_raw 2019-05-26 08:53:59 +02:00
vec.rs shadow as_ptr as as_mut_ptr in Vec to avoid going through Deref 2019-05-25 10:36:07 +02:00