-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-raw-pointersArea: raw pointers, MaybeUninit, NonNullArea: raw pointers, MaybeUninit, NonNullC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-raw-pointersArea: raw pointers, MaybeUninit, NonNullArea: raw pointers, MaybeUninit, NonNullC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]Document the `raw` keyword[/-][+]Document the contextual keyword `raw`[/+]fmease commentedon Dec 18, 2024
While it would be straightforward to add a "keyword page" for
raw
by adding the following tolibrary/std/src/keyword_docs.rs
:I think ideally we want to mark it as a contextual keyword in some way and e.g., reflect that characteristic in the section header prefix.
fmease commentedon Dec 18, 2024
However, we don't mark
union
specially either despite it being a contextual keyword, too. So I guess, take it away!fmease commentedon Dec 21, 2024
Only tangentially related: We should probably also document the Rust ≥2024 contextual keyword
safe
I just noticed.hkBst commentedon Jan 20, 2025
Maybe
raw
could be integrated into https://doc.rust-lang.org/std/primitive.reference.html mostly by contrasting it with non-raw references?lolbinarycat commentedon May 11, 2025
adding T-rustdoc as that's where a "this is a contextual keyword" would need to be supported.