blob: 3bf306dd89c2fd87ab57e1840d1a759677b7393d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
error: unneeded sub `cfg` when there is only one condition
--> tests/ui/non_minimal_cfg.rs:3:7
|
LL | #[cfg(all(windows))]
| ^^^^^^^^^^^^ help: try: `windows`
|
= note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::non_minimal_cfg)]`
error: unneeded sub `cfg` when there is only one condition
--> tests/ui/non_minimal_cfg.rs:7:7
|
LL | #[cfg(any(windows))]
| ^^^^^^^^^^^^ help: try: `windows`
error: unneeded sub `cfg` when there is only one condition
--> tests/ui/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
--> tests/ui/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
|