|
1 | 1 | error: no need to put clippy lints behind a `clippy` cfg |
2 | | - --> tests/ui/unnecessary_clippy_cfg.rs:13:1 |
| 2 | + --> tests/ui/unnecessary_clippy_cfg.rs:4:1 |
3 | 3 | | |
4 | | -LL | #[cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#[deny(clippy::non_minimal_cfg)]` |
| 4 | +LL | #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#![deny(clippy::non_minimal_cfg)]` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::unnecessary-clippy-cfg` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::unnecessary_clippy_cfg)]` |
9 | 9 |
|
10 | 10 | error: no need to put clippy lints behind a `clippy` cfg |
11 | | - --> tests/ui/unnecessary_clippy_cfg.rs:15:36 |
| 11 | + --> tests/ui/unnecessary_clippy_cfg.rs:6:37 |
12 | 12 | | |
13 | | -LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
14 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | +LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
15 | 15 | | |
16 | | - = note: write instead: `#[deny(clippy::non_minimal_cfg)]` |
| 16 | + = note: write instead: `#![deny(clippy::non_minimal_cfg)]` |
17 | 17 |
|
18 | 18 | error: no need to put clippy lints behind a `clippy` cfg |
19 | | - --> tests/ui/unnecessary_clippy_cfg.rs:17:36 |
| 19 | + --> tests/ui/unnecessary_clippy_cfg.rs:8:37 |
20 | 20 | | |
21 | | -LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
22 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 21 | +LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
| 22 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
23 | 23 | | |
24 | | - = note: write instead: `#[deny(clippy::non_minimal_cfg)]` |
| 24 | + = note: write instead: `#![deny(clippy::non_minimal_cfg)]` |
25 | 25 |
|
26 | 26 | error: no need to put clippy lints behind a `clippy` cfg |
27 | | - --> tests/ui/unnecessary_clippy_cfg.rs:19:1 |
| 27 | + --> tests/ui/unnecessary_clippy_cfg.rs:10:1 |
28 | 28 | | |
29 | | -LL | #[cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
30 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#[deny(clippy::non_minimal_cfg)]` |
| 29 | +LL | #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
| 30 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#![deny(clippy::non_minimal_cfg)]` |
31 | 31 |
|
32 | 32 | error: no need to put clippy lints behind a `clippy` cfg |
33 | | - --> tests/ui/unnecessary_clippy_cfg.rs:4:1 |
| 33 | + --> tests/ui/unnecessary_clippy_cfg.rs:13:1 |
34 | 34 | | |
35 | | -LL | #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
36 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#![deny(clippy::non_minimal_cfg)]` |
| 35 | +LL | #[cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
| 36 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#[deny(clippy::non_minimal_cfg)]` |
37 | 37 |
|
38 | 38 | error: no need to put clippy lints behind a `clippy` cfg |
39 | | - --> tests/ui/unnecessary_clippy_cfg.rs:6:37 |
| 39 | + --> tests/ui/unnecessary_clippy_cfg.rs:15:36 |
40 | 40 | | |
41 | | -LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
42 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 41 | +LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
| 42 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
43 | 43 | | |
44 | | - = note: write instead: `#![deny(clippy::non_minimal_cfg)]` |
| 44 | + = note: write instead: `#[deny(clippy::non_minimal_cfg)]` |
45 | 45 |
|
46 | 46 | error: no need to put clippy lints behind a `clippy` cfg |
47 | | - --> tests/ui/unnecessary_clippy_cfg.rs:8:37 |
| 47 | + --> tests/ui/unnecessary_clippy_cfg.rs:17:36 |
48 | 48 | | |
49 | | -LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
50 | | - | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 49 | +LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))] |
| 50 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
51 | 51 | | |
52 | | - = note: write instead: `#![deny(clippy::non_minimal_cfg)]` |
| 52 | + = note: write instead: `#[deny(clippy::non_minimal_cfg)]` |
53 | 53 |
|
54 | 54 | error: no need to put clippy lints behind a `clippy` cfg |
55 | | - --> tests/ui/unnecessary_clippy_cfg.rs:10:1 |
| 55 | + --> tests/ui/unnecessary_clippy_cfg.rs:19:1 |
56 | 56 | | |
57 | | -LL | #![cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
58 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#![deny(clippy::non_minimal_cfg)]` |
| 57 | +LL | #[cfg_attr(clippy, deny(clippy::non_minimal_cfg))] |
| 58 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#[deny(clippy::non_minimal_cfg)]` |
59 | 59 |
|
60 | 60 | error: duplicated attribute |
61 | 61 | --> tests/ui/unnecessary_clippy_cfg.rs:8:26 |
|
0 commit comments