mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
28 lines
861 B
Text
28 lines
861 B
Text
error: unneeded sub `cfg` when there is only one condition
|
|
--> $DIR/non_minimal_cfg.rs:5:7
|
|
|
|
|
LL | #[cfg(all(windows))]
|
|
| ^^^^^^^^^^^^ help: try: `windows`
|
|
|
|
|
= note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
|
|
|
|
error: unneeded sub `cfg` when there is only one condition
|
|
--> $DIR/non_minimal_cfg.rs:8:7
|
|
|
|
|
LL | #[cfg(any(windows))]
|
|
| ^^^^^^^^^^^^ help: try: `windows`
|
|
|
|
error: unneeded sub `cfg` when there is only one condition
|
|
--> $DIR/non_minimal_cfg.rs:11:11
|
|
|
|
|
LL | #[cfg(all(any(unix), all(not(windows))))]
|
|
| ^^^^^^^^^ help: try: `unix`
|
|
|
|
error: unneeded sub `cfg` when there is only one condition
|
|
--> $DIR/non_minimal_cfg.rs:11:22
|
|
|
|
|
LL | #[cfg(all(any(unix), all(not(windows))))]
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|