Remove deprecated cfg_attr from README

`tool_attributes` are stable since 1.30. The old `cfg_attr(rustfmt, rustfmt_skip)` attributes aren't necessary anymore and everyone should switch to `#[rustfmt::skip]` sooner or later.

There is also a Clippy lint in the making for this: rust-lang-nursery/rust-clippy#3123
This commit is contained in:
Philipp Krones 2018-10-29 10:27:19 +01:00 committed by GitHub
parent 1f64f4012f
commit 9adf96d961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,12 +164,7 @@ See [Configurations.md](Configurations.md) for details.
## Tips
* For things you do not want rustfmt to mangle, use one of
```rust
#[rustfmt::skip] // requires nightly Rust and #![feature(tool_attributes)] in crate root
#[cfg_attr(rustfmt, rustfmt_skip)] // works in stable
```
* For things you do not want rustfmt to mangle, use `#[rustfmt::skip]`
* When you run rustfmt, place a file named `rustfmt.toml` or `.rustfmt.toml` in
target file directory or its parents to override the default settings of
rustfmt. You can generate a file containing the default configuration with