1
1
error: incorrect ordering of items (must be alphabetically ordered)
2
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:21 :14
2
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:22 :14
3
3
|
4
4
LL | use std::rc::Weak;
5
5
| ^^^^
6
6
|
7
7
note: should be placed before `SNAKE_CASE`
8
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:19 :7
8
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:20 :7
9
9
|
10
10
LL | const SNAKE_CASE: &str = "zzzzzzzz";
11
11
| ^^^^^^^^^^
12
12
= note: `-D clippy::arbitrary-source-item-ordering` implied by `-D warnings`
13
13
= help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
14
14
15
15
error: incorrect ordering of items (must be alphabetically ordered)
16
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:64 :1
16
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:67 :1
17
17
|
18
18
LL | / impl CloneSelf for StructOrdered {
19
+ LL | |
19
20
LL | | fn clone_self(&self) -> Self {
20
21
LL | | Self {
21
- LL | | a: true,
22
22
... |
23
23
LL | | }
24
24
| |_^
25
25
|
26
26
note: should be placed before the following item
27
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:54 :1
27
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57 :1
28
28
|
29
29
LL | / impl Default for StructOrdered {
30
30
LL | | fn default() -> Self {
@@ -35,55 +35,54 @@ LL | | }
35
35
| |_^
36
36
37
37
error: incorrect ordering of items (must be alphabetically ordered)
38
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:136 :7
38
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:145 :7
39
39
|
40
40
LL | const ZIS_SHOULD_BE_REALLY_EARLY: () = ();
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
42
42
|
43
43
note: should be placed before `TraitUnorderedItemKinds`
44
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:124 :7
44
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:132 :7
45
45
|
46
46
LL | trait TraitUnorderedItemKinds {
47
47
| ^^^^^^^^^^^^^^^^^^^^^^^
48
48
49
49
error: incorrect ordering of items (must be alphabetically ordered)
50
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:151 :1
50
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:163 :1
51
51
|
52
52
LL | impl BasicEmptyTrait for StructOrdered {}
53
53
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
54
|
55
55
note: should be placed before the following item
56
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:138 :1
56
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:148 :1
57
57
|
58
58
LL | / impl TraitUnordered for StructUnordered {
59
59
LL | | const A: bool = false;
60
60
LL | | const C: bool = false;
61
61
LL | | const B: bool = false;
62
62
... |
63
- LL | | fn b() {}
64
63
LL | | }
65
64
| |_^
66
65
67
66
error: incorrect ordering of items (must be alphabetically ordered)
68
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170 :5
67
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:184 :5
69
68
|
70
69
LL | mod this_is_in_the_wrong_position {
71
70
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
71
|
73
72
note: should be placed before `main`
74
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:165 :4
73
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:179 :4
75
74
|
76
75
LL | fn main() {
77
76
| ^^^^
78
77
79
78
error: incorrect ordering of items (must be alphabetically ordered)
80
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:178 :7
79
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:194 :7
81
80
|
82
81
LL | const ZIS_SHOULD_BE_EVEN_EARLIER: () = ();
83
82
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
84
83
|
85
84
note: should be placed before `ZisShouldBeBeforeZeMainFn`
86
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:176 :8
85
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:192 :8
87
86
|
88
87
LL | struct ZisShouldBeBeforeZeMainFn;
89
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -101,121 +100,121 @@ LL | const BEFORE: i8 = 0;
101
100
| ^^^^^^
102
101
103
102
error: incorrect ordering of items (must be alphabetically ordered)
104
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:38 :5
103
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:40 :5
105
104
|
106
105
LL | B,
107
106
| ^
108
107
|
109
108
note: should be placed before `C`
110
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:37 :5
109
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:39 :5
111
110
|
112
111
LL | C,
113
112
| ^
114
113
115
114
error: incorrect ordering of items (must be alphabetically ordered)
116
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:88 :5
115
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:92 :5
117
116
|
118
117
LL | b: bool,
119
118
| ^
120
119
|
121
120
note: should be placed before `c`
122
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:87 :5
121
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:91 :5
123
122
|
124
123
LL | c: bool,
125
124
| ^
126
125
127
126
error: incorrect ordering of items (must be alphabetically ordered)
128
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:96 :5
127
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:101 :5
129
128
|
130
129
LL | b: bool,
131
130
| ^
132
131
|
133
132
note: should be placed before `c`
134
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:95 :5
133
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:100 :5
135
134
|
136
135
LL | c: bool,
137
136
| ^
138
137
139
138
error: incorrect ordering of items (must be alphabetically ordered)
140
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:115 :11
139
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:121 :11
141
140
|
142
141
LL | const B: bool;
143
142
| ^
144
143
|
145
144
note: should be placed before `C`
146
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:114 :11
145
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120 :11
147
146
|
148
147
LL | const C: bool;
149
148
| ^
150
149
151
150
error: incorrect ordering of items (must be alphabetically ordered)
152
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:121 :8
151
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:128 :8
153
152
|
154
153
LL | fn b();
155
154
| ^
156
155
|
157
156
note: should be placed before `c`
158
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120 :8
157
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:127 :8
159
158
|
160
159
LL | fn c();
161
160
| ^
162
161
163
162
error: incorrect ordering of trait items (defined order: [Const, Type, Fn])
164
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:127 :5
163
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:135 :5
165
164
|
166
165
LL | const A: bool;
167
166
| ^^^^^^^^^^^^^^
168
167
|
169
168
note: should be placed before `SomeType`
170
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:125 :5
169
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:133 :5
171
170
|
172
171
LL | type SomeType;
173
172
| ^^^^^^^^^^^^^^
174
173
175
174
error: incorrect ordering of items (must be alphabetically ordered)
176
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:141 :11
175
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:151 :11
177
176
|
178
177
LL | const B: bool = false;
179
178
| ^
180
179
|
181
180
note: should be placed before `C`
182
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140 :11
181
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:150 :11
183
182
|
184
183
LL | const C: bool = false;
185
184
| ^
186
185
187
186
error: incorrect ordering of items (must be alphabetically ordered)
188
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147 :8
187
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:158 :8
189
188
|
190
189
LL | fn b() {}
191
190
| ^
192
191
|
193
192
note: should be placed before `c`
194
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:146 :8
193
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:157 :8
195
194
|
196
195
LL | fn c() {}
197
196
| ^
198
197
199
198
error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
200
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:156 :5
199
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:169 :5
201
200
|
202
201
LL | const A: bool = false;
203
202
| ^^^^^^^^^^^^^^^^^^^^^^
204
203
|
205
204
note: should be placed before `SomeType`
206
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:154 :5
205
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:167 :5
207
206
|
208
207
LL | type SomeType = ();
209
208
| ^^^^^^^^^^^^^^^^^^^
210
209
211
210
error: incorrect ordering of items (must be alphabetically ordered)
212
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:172 :11
211
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:187 :11
213
212
|
214
213
LL | const A: i8 = 1;
215
214
| ^
216
215
|
217
216
note: should be placed before `C`
218
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:171 :11
217
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:186 :11
219
218
|
220
219
LL | const C: i8 = 0;
221
220
| ^
0 commit comments