@@ -18,106 +18,38 @@ LL | #![allow(dead_code)]
1818 = help: to override `-D warnings` add `#[allow(clippy::duplicated_attributes)]`
1919
2020error: duplicated attribute
21- --> tests/ui/duplicated_attributes.rs:5:12
22- |
23- LL | #![cfg(any(unix, windows))]
24- | ^^^^
25- |
26- note: first defined here
27- --> tests/ui/duplicated_attributes.rs:2:12
28- |
29- LL | #![cfg(any(unix, windows))]
30- | ^^^^
31- help: remove this attribute
32- --> tests/ui/duplicated_attributes.rs:5:12
33- |
34- LL | #![cfg(any(unix, windows))]
35- | ^^^^
36-
37- error: duplicated attribute
38- --> tests/ui/duplicated_attributes.rs:5:18
39- |
40- LL | #![cfg(any(unix, windows))]
41- | ^^^^^^^
42- |
43- note: first defined here
44- --> tests/ui/duplicated_attributes.rs:2:18
45- |
46- LL | #![cfg(any(unix, windows))]
47- | ^^^^^^^
48- help: remove this attribute
49- --> tests/ui/duplicated_attributes.rs:5:18
50- |
51- LL | #![cfg(any(unix, windows))]
52- | ^^^^^^^
53-
54- error: duplicated attribute
55- --> tests/ui/duplicated_attributes.rs:11:9
21+ --> tests/ui/duplicated_attributes.rs:9:9
5622 |
5723LL | #[allow(dead_code)]
5824 | ^^^^^^^^^
5925 |
6026note: first defined here
61- --> tests/ui/duplicated_attributes.rs:10 :9
27+ --> tests/ui/duplicated_attributes.rs:8 :9
6228 |
6329LL | #[allow(dead_code)]
6430 | ^^^^^^^^^
6531help: remove this attribute
66- --> tests/ui/duplicated_attributes.rs:11 :9
32+ --> tests/ui/duplicated_attributes.rs:9 :9
6733 |
6834LL | #[allow(dead_code)]
6935 | ^^^^^^^^^
7036
7137error: duplicated attribute
72- --> tests/ui/duplicated_attributes.rs:12:11
73- |
74- LL | #[cfg(any(unix, windows, target_os = "linux"))]
75- | ^^^^
76- |
77- note: first defined here
78- --> tests/ui/duplicated_attributes.rs:9:11
79- |
80- LL | #[cfg(any(unix, windows, target_os = "linux"))]
81- | ^^^^
82- help: remove this attribute
83- --> tests/ui/duplicated_attributes.rs:12:11
84- |
85- LL | #[cfg(any(unix, windows, target_os = "linux"))]
86- | ^^^^
87-
88- error: duplicated attribute
89- --> tests/ui/duplicated_attributes.rs:12:17
90- |
91- LL | #[cfg(any(unix, windows, target_os = "linux"))]
92- | ^^^^^^^
93- |
94- note: first defined here
95- --> tests/ui/duplicated_attributes.rs:9:17
96- |
97- LL | #[cfg(any(unix, windows, target_os = "linux"))]
98- | ^^^^^^^
99- help: remove this attribute
100- --> tests/ui/duplicated_attributes.rs:12:17
101- |
102- LL | #[cfg(any(unix, windows, target_os = "linux"))]
103- | ^^^^^^^
104-
105- error: duplicated attribute
106- --> tests/ui/duplicated_attributes.rs:12:26
38+ --> tests/ui/duplicated_attributes.rs:15:7
10739 |
108- LL | #[cfg(any( unix, windows, target_os = "linux") )]
109- | ^^^^^^^^^^^^^^^ ^^^^
40+ LL | #[cfg(unix)]
41+ | ^^^^
11042 |
11143note: first defined here
112- --> tests/ui/duplicated_attributes.rs:9:26
44+ --> tests/ui/duplicated_attributes.rs:13:7
11345 |
114- LL | #[cfg(any( unix, windows, target_os = "linux") )]
115- | ^^^^^^^^^^^^^^^ ^^^^
46+ LL | #[cfg(unix)]
47+ | ^^^^
11648help: remove this attribute
117- --> tests/ui/duplicated_attributes.rs:12:26
49+ --> tests/ui/duplicated_attributes.rs:15:7
11850 |
119- LL | #[cfg(any( unix, windows, target_os = "linux") )]
120- | ^^^^^^^^^^^^^^^ ^^^^
51+ LL | #[cfg(unix)]
52+ | ^^^^
12153
122- error: aborting due to 7 previous errors
54+ error: aborting due to 3 previous errors
12355
0 commit comments