Skip to content

Document tool attributes being unaffected by the no_implicit_prelude attribute - #2404

Open
mejrs wants to merge 1 commit into
rust-lang:masterfrom
mejrs:tool_prelude
Open

mejrs wants to merge 1 commit into
rust-lang:masterfrom
mejrs:tool_prelude

Conversation

@mejrs

@mejrs mejrs commented Nov 2, 2026

Copy link
Copy Markdown
Member

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Nov 2, 2026
Comment thread src/names/preludes.md

r[names.preludes.no_implicit_prelude.intro]
The *`no_implicit_prelude` [attribute]* is used to prevent implicit preludes from being brought into scope.
The `no_implicit_prelude` attribute prevents the [standard library prelude], [extern prelude], and the [`macro_use` prelude] from being brought into scope for a crate or a module and its descendants.

@DanielEScherzer DanielEScherzer Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest leaving the .intro rule unchanged, and just moving the tool prelude mention from .excluded-preludes to the (now renamed) .unaffected

View changes since the review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants