diff options
| author | kennytm <kennytm@gmail.com> | 2018-09-01 21:14:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-01 21:14:13 +0800 |
| commit | fcd76b4d3c8c1b6cc7db3d0ed1a17bf45c51818f (patch) | |
| tree | 4ff7406b095558bebb1bc721cb79d5e1f094eb66 /src/test/incremental/thinlto | |
| parent | 8d161a668214e409114761427b540549d775b4fa (diff) | |
| parent | bf7e324e4e610b1f12971e601073ccfd6f197fff (diff) | |
| download | rust-fcd76b4d3c8c1b6cc7db3d0ed1a17bf45c51818f.tar.gz rust-fcd76b4d3c8c1b6cc7db3d0ed1a17bf45c51818f.zip | |
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
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
