rust/src/liballoc
Mazdak Farrokhzad 2de4f4335e
Rollup merge of #65505 - RalfJung:rc, r=Centril
Rc: value -> allocation

See https://github.com/rust-lang/rust/issues/64484. This does not yet edit `Arc` as I first wanted to be sure we agree on the terminology the way it actually ends up. "value" as a term appears a lot in this file, and sometimes it refers to the value stored inside the `RcBox` while sometimes it refers to the `RcBox` itself. I tried to properly tease these apart but may have made some mistakes. The former should now always be called "inner value" and the latter "allocation".

One area where I was very unsure of which terminology is dropping: the `value` field of the `RcBox` will get dropped *earlier* than the `RcBox` itself if there are weak references. I decided that "dropping the value stored in the allocation" refers to dropping the value field, while "destroying the allocation" refers to actually freeing its backing memory.

r? @Centril
2019-10-19 16:00:56 +02:00
..
alloc liballoc: Unconfigure tests during normal build 2019-08-02 01:59:01 +03:00
benches bump rand to fix Miri failures 2019-08-04 14:50:26 +02:00
collections Rollup merge of #65226 - ssomers:master, r=bluss 2019-10-19 16:00:53 +02:00
prelude Replace SliceConcatExt trait with inherent methods and SliceConcat helper trait 2019-07-05 11:49:30 +02:00
raw_vec A few cosmetic improvements to code & comments in liballoc and libcore 2019-09-06 16:02:25 +01:00
rc Add implementations for converting boxed slices into boxed arrays 2019-08-05 10:26:53 -04:00
sync Add implementations for converting boxed slices into boxed arrays 2019-08-05 10:26:53 -04:00
tests Rollup merge of #65226 - ssomers:master, r=bluss 2019-10-19 16:00:53 +02:00
alloc.rs Snap cfgs to new beta 2019-09-25 08:42:46 -04:00
borrow.rs Use associated_type_bounds where applicable - closes #61738 2019-08-08 22:39:15 +02:00
boxed.rs Uninitialized boxes: check for zero-size allocation based on Layout::size 2019-10-16 20:32:58 +02:00
Cargo.toml bump rand to fix Miri failures 2019-08-04 14:50:26 +02:00
fmt.rs example for padding any format 2019-10-17 23:02:09 +02:00
lib.rs Rollup merge of #65214 - Amanieu:cfg_atomic, r=alexcrichton 2019-10-13 19:17:04 +02:00
macros.rs Improve hygiene of alloc::format! 2019-09-07 22:40:57 +03:00
raw_vec.rs Const-stabilize Vec::new. 2019-09-16 16:45:16 +02:00
rc.rs some more Rc tweaks 2019-10-19 13:47:32 +02:00
slice.rs Stabilize slice::repeat (feature repeat_generic_slice) 2019-10-02 04:48:15 +00:00
str.rs Remove unneeded fn main blocks from docs 2019-10-01 11:55:46 +00:00
string.rs Remove unneeded fn main blocks from docs 2019-10-01 11:55:46 +00:00
sync.rs do all the same edits with Arc 2019-10-19 13:48:02 +02:00
tests.rs Add implementations for converting boxed slices into boxed arrays 2019-08-05 10:26:53 -04:00
vec.rs Rollup merge of #64912 - lzutao:unneeded-main-doc, r=jonas-schievink 2019-10-01 23:56:23 +02:00