diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-09-03 13:30:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-03 13:30:49 +0200 |
| commit | 01775b60279e543c34d45800606033a51bbd7a57 (patch) | |
| tree | aa5bfa6dba2d2f93e14e0e888c2930b67d405299 | |
| parent | 4b5da4aefe263f044e554b2f654ecdca62086722 (diff) | |
| parent | 9da8e2a2fa902e644b4de143a379e339ed054afe (diff) | |
| download | rust-01775b60279e543c34d45800606033a51bbd7a57.tar.gz rust-01775b60279e543c34d45800606033a51bbd7a57.zip | |
Rollup merge of #88579 - ast-ral:master, r=m-ou-se
remove redundant / misplaced sentence from docs Removes sentence that seems to have drifted down into the examples section. Luckily, someone already added an explanation of what happens with packed structs back into the initial section of the doc entry and this wayward sentence can likely just be deleted.
| -rw-r--r-- | library/core/src/ptr/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index 02c9dadc086..014170604ec 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -182,10 +182,6 @@ mod mut_ptr; /// // Ensure that the last item was dropped. /// assert!(weak.upgrade().is_none()); /// ``` -/// -/// Notice that the compiler performs this copy automatically when dropping packed structs, -/// i.e., you do not usually have to worry about such issues unless you call `drop_in_place` -/// manually. #[stable(feature = "drop_in_place", since = "1.8.0")] #[lang = "drop_in_place"] #[allow(unconditional_recursion)] |
