rust/src/liballoc
bors fc550d4295 Auto merge of #61421 - vorner:string-in-rc-into-raw-docs, r=RalfJung
docs: Use String in Rc::into_raw examples

It is unclear if accessing an integer after `drop_in_place` has been
called on it is undefined behaviour or not, as demonstrated by the
discussion in
https://github.com/rust-lang/rust/pull/60766#pullrequestreview-243414222.

Avoid these uncertainties by using String which frees memory in its
`drop_in_place` to make sure this is undefined behaviour. The message in
the docs should be to watch out and not access the data after that, not
discussing when one maybe could get away with it O:-).
2019-06-14 12:37:28 +00: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 Turn #[allocator] into a built-in attribute and rename it to #[rustc_allocator] 2019-06-08 23:55:25 +03: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 Turn #[allocator] into a built-in attribute and rename it to #[rustc_allocator] 2019-06-08 23:55:25 +03:00
macros.rs Hygienize macros in the standard library 2019-06-12 20:27:29 +03:00
raw_vec.rs avoid materializing unintialized Boxes in RawVec 2019-05-27 11:15:31 +03:00
rc.rs Auto merge of #61421 - vorner:string-in-rc-into-raw-docs, r=RalfJung 2019-06-14 12:37:28 +00:00
slice.rs Box::into_vec: use Box::into_raw instead of mem::forget 2019-05-27 22:40:28 +02:00
str.rs Add an unusual-conversion example to to_uppercase 2019-06-01 00:23:26 -07: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 docs: Use String in Rc::into_raw examples 2019-06-13 13:18:59 +02:00
vec.rs Succinctify splice docs 2019-06-01 11:26:08 +02:00