Skip to content

Commit

Permalink
Rollup merge of #88579 - ast-ral:master, r=m-ou-se
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
m-ou-se authored Sep 2, 2021
2 parents d4d3f41 + 9da8e2a commit 3556f8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/core/src/ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 3556f8b

Please sign in to comment.