@@ -57,5 +57,41 @@ error: no need to put clippy lints behind a `clippy` cfg
57
57
LL | #![cfg_attr(clippy, deny(clippy::non_minimal_cfg, clippy::maybe_misused_cfg))]
58
58
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `#![deny(clippy::non_minimal_cfg, clippy::maybe_misused_cfg)]`
59
59
60
- error: aborting due to 8 previous errors
60
+ error: duplicated attribute
61
+ --> tests/ui/unnecessary_clippy_cfg.rs:8:26
62
+ |
63
+ LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg, clippy::maybe_misused_cfg))]
64
+ | ^^^^^^^^^
65
+ |
66
+ note: first defined here
67
+ --> tests/ui/unnecessary_clippy_cfg.rs:6:26
68
+ |
69
+ LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
70
+ | ^^^^^^^^^
71
+ help: remove this attribute
72
+ --> tests/ui/unnecessary_clippy_cfg.rs:8:26
73
+ |
74
+ LL | #![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg, clippy::maybe_misused_cfg))]
75
+ | ^^^^^^^^^
76
+ = note: `-D clippy::duplicated-attributes` implied by `-D warnings`
77
+ = help: to override `-D warnings` add `#[allow(clippy::duplicated_attributes)]`
78
+
79
+ error: duplicated attribute
80
+ --> tests/ui/unnecessary_clippy_cfg.rs:17:25
81
+ |
82
+ LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg, clippy::maybe_misused_cfg))]
83
+ | ^^^^^^^^^
84
+ |
85
+ note: first defined here
86
+ --> tests/ui/unnecessary_clippy_cfg.rs:15:25
87
+ |
88
+ LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
89
+ | ^^^^^^^^^
90
+ help: remove this attribute
91
+ --> tests/ui/unnecessary_clippy_cfg.rs:17:25
92
+ |
93
+ LL | #[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg, clippy::maybe_misused_cfg))]
94
+ | ^^^^^^^^^
95
+
96
+ error: aborting due to 10 previous errors
61
97
0 commit comments