Skip to content

Commit 1f4e9cb

Browse files
committed
document that the rustc tool namespace is reserved
this section in the reference is not quite right; or at least is an incomplete summary. here is a more detailed explanation of what's currently implemented: |Tool|Lints|Attributes| |-|-|-| |`clippy`|✅|✅| |`rustfmt`|❌|✅| |`miri`|❌|✅| |`rust_analyzer`|❌|✅| |`rustdoc`|✅|❌| |`rustc`|✅ (with `-Z unstable-options`)|❌| |`diagnostic`|❌|✅| i'm not sure how to write that up, and it doesn't belong in the attributes section anyway, so i've just added this short snippet.
1 parent cc1d51c commit 1f4e9cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/attributes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ pub fn f() {}
229229

230230
> [!NOTE]
231231
> `rustc` currently recognizes the tools "clippy", "rustfmt", "diagnostic", "miri" and "rust_analyzer".
232+
> Additionally, the `rustc` tool, and all tools starting with the literal string "rustc", are reserved for future extensions.
232233
233234
r[attributes.builtin]
234235
## Built-in attributes index

0 commit comments

Comments
 (0)