Skip to content

Add documentation for the non_exhaustive attribute - #159861

Open
Kristianerik wants to merge 4 commits into
rust-lang:mainfrom
Kristianerik:docs-non-exhaustive-attribute
Open

Add documentation for the non_exhaustive attribute#159861
Kristianerik wants to merge 4 commits into
rust-lang:mainfrom
Kristianerik:docs-non-exhaustive-attribute

Conversation

@Kristianerik

@Kristianerik Kristianerik commented Jul 24, 2026

Copy link
Copy Markdown

Document the built-in non_exhaustive attribute using the #[doc(attribute = "…")] mechanism.

Part of #157604

Tested with ./x test library/std --doc --test-args attribute_docs.

r? @GuillaumeGomez

@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 Jul 24, 2026
@rustbot

rustbot commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rust-log-analyzer

This comment has been minimized.

Comment thread library/core/src/attribute_docs.rs Outdated
Comment thread library/core/src/attribute_docs.rs Outdated
Kristianerik and others added 2 commits July 30, 2026 13:43
Co-authored-by: Guillaume Gomez <contact@guillaume-gomez.fr>
Co-authored-by: Guillaume Gomez <contact@guillaume-gomez.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants