Repository navigation
Add DropGuard and conjure_zst to core::mem summary documentation. - #166639
Conversation
|
r? @joboet rustbot has assigned @joboet. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| //! [`needs_drop`] | ||
| //! tells you whether a type’s destructor even does anything. | ||
| //! * [`DropGuard`], [`forget`], [`ManuallyDrop`], and [`needs_drop`] | ||
| //! manipulate destructors. |
There was a problem hiding this comment.
I found the previous description more helpful, as it also talked about the differences between these. How about talking about DropGuard first (it adds destructors), then forget and ManuallyDrop (they remove destructors) and then needs_drop?
There was a problem hiding this comment.
The reason I reduced rather than expanded this description is that it felt like if I added a description of DropGuard, it would be long and significantly duplicating the purpose of the items’ own descriptions, and it's also not consistent with the style of the other categories. I could put it back, though.
There was a problem hiding this comment.
I've pushed a version which keeps the previous text.
@rustbot ready
|
Lovely, thanks! |
Updates the summary originally added in #153793 to include recently stabilized items
DropGuardandconjure_zst, which fit into the existing categorization.