mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 19:43:20 +00:00
23 lines
925 B
Text
23 lines
925 B
Text
error: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes
|
|
--> tests/ui/cfg_attr_rustfmt.rs:18:5
|
|
|
|
|
LL | #[cfg_attr(rustfmt, rustfmt::skip)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]`
|
|
|
|
|
= note: `-D clippy::deprecated-cfg-attr` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::deprecated_cfg_attr)]`
|
|
|
|
error: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes
|
|
--> tests/ui/cfg_attr_rustfmt.rs:22:1
|
|
|
|
|
LL | #[cfg_attr(rustfmt, rustfmt_skip)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]`
|
|
|
|
error: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes
|
|
--> tests/ui/cfg_attr_rustfmt.rs:41:5
|
|
|
|
|
LL | #[cfg_attr(rustfmt, rustfmt::skip)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|