Skip to content

Commit 91249cc

Browse files
committed
Add section about inner tool attributes
1 parent 038097c commit 91249cc

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/attributes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,20 @@ pub fn f() {}
204204
> [!NOTE]
205205
> `rustc` currently recognizes the tools "clippy", "rustfmt", "diagnostic", "miri", and "rust_analyzer".
206206
207+
r[attributes.tool.inner]
208+
Tool attributes can be inner attributes.
209+
210+
```rust
211+
// Tells the rustfmt tool to not format the whole module.
212+
#![rustfmt::skip]
213+
214+
struct S {
215+
}
216+
217+
struct K {
218+
}
219+
```
220+
207221
r[attributes.builtin]
208222
## Built-in attributes index
209223

0 commit comments

Comments
 (0)