Skip to content

Commit

Permalink
Add tool_attributes feature to unstable book
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro authored and flip1995 committed May 2, 2018
1 parent 6c28f84 commit 8ad2d21
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/doc/unstable-book/src/language-features/tool-attributes.md
@@ -0,0 +1,26 @@
# `tool_attributes`

The tracking issue for this feature is: [#44690]

[#44690]: https://github.com/rust-lang/rust/issues/44690

------------------------

Tool attributes let you use scoped attributes to control the behavior
of certain tools.

Currently tool names which can be appear in scoped attributes are restricted to
`clippy` and `rustfmt`.

## An example

```rust
#![feature(tool_attributes)]

#[rustfmt::skip]
fn foo() { println!("hello, world"); }

fn main() {
foo();
}
```

0 comments on commit 8ad2d21

Please sign in to comment.