Skip to content

Conversation

@aDotInTheVoid
Copy link
Member

Makes it clear that this represents #[doc = "content"], but not #[doc(hidden)] (or other uses of the #[doc(...)] attribute).

r? @jdonszelmann

Makes it clear that this represents `#[doc = "content"]`, but not
`#[doc(hidden)]` (or other uses of the `#[doc(...)]` attribute).
@rustbot
Copy link
Collaborator

rustbot commented Oct 14, 2025

Some changes occurred in compiler/rustc_hir/src/attrs

cc @jdonszelmann

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 14, 2025
@jdonszelmann
Copy link
Contributor

@bors r+ rollup (note the pr for other uses of doc is being worked on by @GuillaumeGomez which iirc updates these comments slightly more to explain the exact difference between the two).

@bors
Copy link
Collaborator

bors commented Oct 14, 2025

📌 Commit ff95799 has been approved by jdonszelmann

It is now in the queue for this repository.

@bors bors 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 Oct 14, 2025
bors added a commit that referenced this pull request Oct 15, 2025
Rollup of 7 pull requests

Successful merges:

 - #146841 (Stabilise `rotate_left` and `rotate_right` in `[_]` as `const fn` items.)
 - #146949 (Add vsx register support for ppc inline asm, and implement preserves_flag option)
 - #147539 (resolve: Use primitives for conditional mutability more consistently)
 - #147685 (remove span calls from deprecated attribute checking)
 - #147699 (Clairify docs for `AttributeKind::DocComment`)
 - #147706 (Add myself to review rotation)
 - #147711 (Clarify that UB will occur, not can/may in GlobalAlloc docs)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e389ffa into rust-lang:master Oct 15, 2025
11 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 15, 2025
rust-timer added a commit that referenced this pull request Oct 15, 2025
Rollup merge of #147699 - aDotInTheVoid:doc-comment-doc-comment, r=jdonszelmann

Clairify docs for `AttributeKind::DocComment`

Makes it clear that this represents `#[doc = "content"]`, but not `#[doc(hidden)]` (or other uses of the `#[doc(...)]` attribute).

r? `@jdonszelmann`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler 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