rust/src/liballoc
Mazdak Farrokhzad 3388028776
Rollup merge of #61086 - RalfJung:box, r=alexcrichton
Box::into_unique: do the reborrow-to-raw *after* destroying the Box

Currently we first "reborrow" the box to a raw pointer, and then `forget` it. When tracking raw pointers more strictly (something I am experimenting with locally in Miri), the "use" induced by passing the box to `forget` invalidates the previously created raw pointer.

So adjust my hack from https://github.com/rust-lang/rust/pull/58429 to reorder the two operations.
2019-05-24 01:30:24 +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 fix dangling reference in Vec::append 2019-05-23 16:30:54 +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 adjust comment 2019-05-23 18:13:08 +02: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 Stabilize the alloc crate. 2019-04-12 20:07:30 +02:00
rc.rs add comment to Rc/Arc's Eq specialization 2019-05-11 11:03:28 +02:00
slice.rs Ban multi-trait objects via trait aliases. 2019-05-20 16:12:49 +01: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 add comment to Rc/Arc's Eq specialization 2019-05-11 11:03:28 +02:00
vec.rs fix dangling reference in Vec::append 2019-05-23 16:30:54 +02:00