Skip to content

Add documentation for the inline attribute#158348

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
valentynkit:docs-inline-attribute
Jul 15, 2026
Merged

Add documentation for the inline attribute#158348
rust-bors[bot] merged 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.

@valentynkit valentynkit force-pushed the docs-inline-attribute branch from 36b776e to 6a28d0c Compare June 27, 2026 11:44
@rustbot

This comment has been minimized.

@rust-bors

This comment has been minimized.

@valentynkit valentynkit force-pushed the docs-inline-attribute branch from 6a28d0c to 480d2fe Compare July 9, 2026 15:41
@rustbot

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 480d2fe to ab4b9bf Compare July 13, 2026 11:31
@rustbot

rustbot commented Jul 13, 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.

@valentynkit

Copy link
Copy Markdown
Contributor Author

@GuillaumeGomez could you also check this PR?

@GuillaumeGomez

Copy link
Copy Markdown
Member

Looks good to me, thanks!

@bors r+ rollup

@rust-bors

rust-bors Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

📌 Commit ab4b9bf has been approved by GuillaumeGomez

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 Jul 14, 2026
rust-bors Bot pushed a commit that referenced this pull request Jul 15, 2026
Rollup of 15 pull requests

Successful merges:

 - #159311 (Add 1.97.1 release notes)
 - #156220 (Implement `VecDeque::truncate_to_range`)
 - #158608 (Implement `#[diagnostic::opaque]` attribute to hide backtraces of macros.)
 - #159168 (Fix static_mut_refs lint check logic)
 - #159242 (resolve: Inherit eager invocation parents)
 - #159256 (Account for async closures when pointing at lifetime in return type)
 - #159310 (cleanup: upstream dropped AMX-TF32)
 - #158348 (Add documentation for the `inline` attribute)
 - #159181 (add rustc_no_writable to mem::forget and structs it uses)
 - #159191 (Mark `PrivateItems` with `std_internals` unstable feature.)
 - #159194 (rustdoc: Fix auto trait normalization env)
 - #159196 (OnceCell: Improve wording in module docs)
 - #159289 (Fix Zulip backport command suggestion)
 - #159294 (renovate: don't update PRs in the merge queue)
 - #159305 (std: clarify available_parallelism docs for Windows 11 processor groups)
@rust-bors rust-bors Bot merged commit 812c630 into rust-lang:main Jul 15, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Jul 15, 2026
rust-timer added a commit that referenced this pull request Jul 15, 2026
Rollup merge of #158348 - valentynkit:docs-inline-attribute, r=GuillaumeGomez

Add documentation for the `inline` attribute

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`.
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.

4 participants