rust/src/liballoc
kennytm fcd76b4d3c
Rollup merge of #53782 - rask:task/arc-docs-adjustment, r=cramertj
Make Arc cloning mechanics clearer in module docs

Add some more wording to module documentation regarding how
`Arc::clone()` works, as some users have assumed cloning Arc's
to work via dereferencing to inner value as follows:

    use std::sync::Arc;

    let myarc = Arc::new(1);
    let myarcref = myarc.clone();

    assert!(1 == myarcref);

Instead of the actual mechanic of referencing the existing
Arc value:

    use std::sync::Arg;

    let myarc = Arc::new(1);
    let myarcref = myarc.clone();

    assert!(myarcref == &myarc); // not sure if assert could assert this in the real world
2018-09-01 21:14:13 +08:00
..
benches Auto merge of #52553 - Pazzaz:vecdeque-append, r=SimonSapin 2018-08-18 08:56:12 +00:00
collections Add another assert 2018-08-29 13:42:48 +02:00
tests Stabilize 'attr_literals' feature. 2018-08-23 19:06:07 -07:00
alloc.rs Replace usages of ptr::offset with ptr::{add,sub}. 2018-08-20 07:28:34 -04:00
borrow.rs Review fix 2018-08-15 22:06:35 +03:00
boxed_test.rs Add missing dyn in liballoc 2018-07-10 22:32:19 +02:00
boxed.rs attempt to work around Box<T> not being recognized as local type 2018-08-23 01:37:03 +03:00
Cargo.toml Add benchmark for VecDeque append 2018-08-10 21:52:00 +02:00
fmt.rs
lib.rs Auto merge of #53227 - nivkner:pin_move, r=RalfJung 2018-08-27 22:56:15 +00:00
macros.rs
pin.rs remove copyright headers now that they are not madatory 2018-08-25 00:07:00 +03:00
prelude.rs Add the alloc::prelude module 2018-07-07 23:08:43 +02:00
raw_vec.rs Rollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung 2018-08-21 22:05:30 +08:00
rc.rs Auto merge of #53530 - kennytm:rollup, r=kennytm 2018-08-21 16:04:11 +00:00
slice.rs Replace usages of ptr::offset with ptr::{add,sub}. 2018-08-20 07:28:34 -04:00
str.rs docs: std::string::String.repeat(): slightly rephrase to be more in-line with other descriptions. 2018-08-22 08:35:34 +02:00
string.rs docs: std::string::String.repeat(): slightly rephrase to be more in-line with other descriptions. 2018-08-22 08:35:34 +02:00
sync.rs Add clearer wording to Arc clone example code 2018-08-31 11:21:01 +03:00
task.rs Switch to bootstrapping from 1.29 beta 2018-08-01 11:59:08 -06:00
vec.rs Replace usages of ptr::offset with ptr::{add,sub}. 2018-08-20 07:28:34 -04:00