Skip to content

Commit 01775b6

Browse files
authored
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.
2 parents 4b5da4a + 9da8e2a commit 01775b6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/core/src/ptr/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ mod mut_ptr;
182182
/// // Ensure that the last item was dropped.
183183
/// assert!(weak.upgrade().is_none());
184184
/// ```
185-
///
186-
/// Notice that the compiler performs this copy automatically when dropping packed structs,
187-
/// i.e., you do not usually have to worry about such issues unless you call `drop_in_place`
188-
/// manually.
189185
#[stable(feature = "drop_in_place", since = "1.8.0")]
190186
#[lang = "drop_in_place"]
191187
#[allow(unconditional_recursion)]

0 commit comments

Comments
 (0)