Skip to content

Add documentation for the inline attribute#158348

Open
valentynkit wants to merge 1 commit into
rust-lang:mainfrom
valentynkit:docs-inline-attribute
Open

Add documentation for the inline attribute#158348
valentynkit wants to merge 1 commit into
rust-lang:mainfrom
valentynkit:docs-inline-attribute

Conversation

@valentynkit

@valentynkit valentynkit commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Document the built-in inline attribute in the standard library using the #[doc(attribute = "...")] mechanism, following #157957 (must_use).

Part of #157604

r? @GuillaumeGomez

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

@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 Jun 24, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-bors

This comment has been minimized.

Document the built-in `inline` attribute in the standard library using the
`#[doc(attribute = "...")]` mechanism, following the existing `must_use`
attribute documentation.
@valentynkit valentynkit force-pushed the docs-inline-attribute branch from 36b776e to 6a28d0c Compare June 27, 2026 11:44
@rustbot

rustbot commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

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