@@ -18,106 +18,38 @@ LL | #![allow(dead_code)]
18
18
= help: to override `-D warnings` add `#[allow(clippy::duplicated_attributes)]`
19
19
20
20
error: 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
56
22
|
57
23
LL | #[allow(dead_code)]
58
24
| ^^^^^^^^^
59
25
|
60
26
note: first defined here
61
- --> tests/ui/duplicated_attributes.rs:10 :9
27
+ --> tests/ui/duplicated_attributes.rs:8 :9
62
28
|
63
29
LL | #[allow(dead_code)]
64
30
| ^^^^^^^^^
65
31
help: remove this attribute
66
- --> tests/ui/duplicated_attributes.rs:11 :9
32
+ --> tests/ui/duplicated_attributes.rs:9 :9
67
33
|
68
34
LL | #[allow(dead_code)]
69
35
| ^^^^^^^^^
70
36
71
37
error: 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
107
39
|
108
- LL | #[cfg(any( unix, windows, target_os = "linux") )]
109
- | ^^^^^^^^^^^^^^^ ^^^^
40
+ LL | #[cfg(unix)]
41
+ | ^^^^
110
42
|
111
43
note: first defined here
112
- --> tests/ui/duplicated_attributes.rs:9:26
44
+ --> tests/ui/duplicated_attributes.rs:13:7
113
45
|
114
- LL | #[cfg(any( unix, windows, target_os = "linux") )]
115
- | ^^^^^^^^^^^^^^^ ^^^^
46
+ LL | #[cfg(unix)]
47
+ | ^^^^
116
48
help: remove this attribute
117
- --> tests/ui/duplicated_attributes.rs:12:26
49
+ --> tests/ui/duplicated_attributes.rs:15:7
118
50
|
119
- LL | #[cfg(any( unix, windows, target_os = "linux") )]
120
- | ^^^^^^^^^^^^^^^ ^^^^
51
+ LL | #[cfg(unix)]
52
+ | ^^^^
121
53
122
- error: aborting due to 7 previous errors
54
+ error: aborting due to 3 previous errors
123
55
0 commit comments