From 9adf96d961b833043436ff731af924fd9c9f55b0 Mon Sep 17 00:00:00 2001 From: Philipp Krones Date: Mon, 29 Oct 2018 10:27:19 +0100 Subject: [PATCH] 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 --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index f811123f72a..0af1a94080d 100644 --- a/README.md +++ b/README.md @@ -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