diff options
| author | bors <bors@rust-lang.org> | 2019-08-19 20:49:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-19 20:49:39 +0000 |
| commit | c1b08dd26036e14f061b99b20cd6f169e29046f3 (patch) | |
| tree | 2a436944507cd0f934892d37120557784006d92d /src/liballoc | |
| parent | 29a54035c77cb2ba7ea2c24b2437760d0495a2c8 (diff) | |
| parent | ac345942097cf27c7b07550fc3f955d198da0021 (diff) | |
Auto merge of #63715 - Centril:rollup-dga8qtp, r=Centril
Rollup of 5 pull requests Successful merges: - #63252 (Remove recommendation about idiomatic syntax for Arc::clone) - #63376 (use different lifetime name for object-lifetime-default elision) - #63620 (Use constraint span when lowering associated types) - #63699 (Fix suggestion from incorrect `move async` to `async move`.) - #63704 ( Fixed: error: unnecessary trailing semicolon) Failed merges: r? @ghost
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/sync.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index 341172136e2..9ffc1673e5a 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -107,10 +107,6 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize; /// // a, b, and foo are all Arcs that point to the same memory location /// ``` /// -/// The [`Arc::clone(&from)`] syntax is the most idiomatic because it conveys more explicitly -/// the meaning of the code. In the example above, this syntax makes it easier to see that -/// this code is creating a new reference rather than copying the whole content of foo. -/// /// ## `Deref` behavior /// /// `Arc<T>` automatically dereferences to `T` (via the [`Deref`][deref] trait), |
