Skip to content

Add DropGuard and conjure_zst to core::mem summary documentation. - #166639

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kpreid:mem-doc
Nov 28, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kpreid:mem-doc

Conversation

@kpreid

@kpreid kpreid commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Updates the summary originally added in #153793 to include recently stabilized items DropGuard and conjure_zst, which fit into the existing categorization.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 27, 2026
@rustbot

rustbot commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

r? @joboet

rustbot has assigned @joboet.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 38 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, joboet

Comment thread library/core/src/mem/mod.rs Outdated
//! [`needs_drop`]
//! tells you whether a type’s destructor even does anything.
//! * [`DropGuard`], [`forget`], [`ManuallyDrop`], and [`needs_drop`]
//! manipulate destructors.

@joboet joboet Nov 27, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a version which keeps the previous text.

@rustbot ready

@joboet joboet added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 27, 2026
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 28, 2026
@joboet

joboet commented Nov 28, 2026

Copy link
Copy Markdown
Member

Lovely, thanks!
@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f944c7a has been approved by joboet

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 28, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 3 pull requests

Successful merges:

 - #166565 (Call `check_def_id` when meeting assoc consts)
 - #166639 (Add `DropGuard` and `conjure_zst` to `core::mem` summary documentation.)
 - #166677 (Add diagnostic items for `{debug_,}assert_matches!` macros)
@rust-bors
rust-bors Bot merged commit 71acbb1 into rust-lang:main Nov 28, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 28, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
Rollup merge of #166639 - kpreid:mem-doc, r=joboet

Add `DropGuard` and `conjure_zst` to `core::mem` summary documentation.

Updates the summary originally added in #153793 to include recently stabilized items `DropGuard` and `conjure_zst`, which fit into the existing categorization.
@kpreid
kpreid deleted the mem-doc branch November 28, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants