1 error: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes
2 --> $DIR/cfg_attr_lint.rs:8:1
4 8 | #[cfg_attr(rustfmt, rustfmt_skip)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]`
7 = note: `-D clippy::deprecated-cfg-attr` implied by `-D warnings`
9 error: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes
10 --> $DIR/cfg_attr_lint.rs:14:5
12 14 | #![cfg_attr(rustfmt, rustfmt_skip)]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#![rustfmt::skip]`
15 error: aborting due to 2 previous errors