@@ -13,37 +13,37 @@ LL | const SNAKE_CASE: &str = "zzzzzzzz";
13
13
= help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
14
14
15
15
error: incorrect ordering of items (module item groupings specify another order)
16
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:149 :7
16
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:165 :7
17
17
|
18
18
LL | const ZIS_SHOULD_BE_REALLY_EARLY: () = ();
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
20
20
|
21
21
note: should be placed before `TraitUnorderedItemKinds`
22
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:136 :7
22
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:152 :7
23
23
|
24
24
LL | trait TraitUnorderedItemKinds {
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^
26
26
27
27
error: incorrect ordering of items (module item groupings specify another order)
28
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:188 :5
28
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:204 :5
29
29
|
30
30
LL | mod this_is_in_the_wrong_position {
31
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
|
33
33
note: should be placed before `main`
34
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:183 :4
34
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:199 :4
35
35
|
36
36
LL | fn main() {
37
37
| ^^^^
38
38
39
39
error: incorrect ordering of items (module item groupings specify another order)
40
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:198 :7
40
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:214 :7
41
41
|
42
42
LL | const ZIS_SHOULD_BE_EVEN_EARLIER: () = ();
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
44
44
|
45
45
note: should be placed before `ZisShouldBeBeforeZeMainFn`
46
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:196 :8
46
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:212 :8
47
47
|
48
48
LL | struct ZisShouldBeBeforeZeMainFn;
49
49
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -61,100 +61,124 @@ LL | C,
61
61
| ^
62
62
63
63
error: incorrect ordering of items (must be alphabetically ordered)
64
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:96:5
64
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
65
+ |
66
+ LL | g: u8,
67
+ | ^
68
+ |
69
+ note: should be placed before `r`
70
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:56:5
71
+ |
72
+ LL | r: u8,
73
+ | ^
74
+
75
+ error: incorrect ordering of items (must be alphabetically ordered)
76
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:59:5
77
+ |
78
+ LL | b: u8,
79
+ | ^
80
+ |
81
+ note: should be placed before `g`
82
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:57:5
83
+ |
84
+ LL | g: u8,
85
+ | ^
86
+
87
+ error: incorrect ordering of items (must be alphabetically ordered)
88
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:112:5
65
89
|
66
90
LL | b: bool,
67
91
| ^
68
92
|
69
93
note: should be placed before `c`
70
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:95 :5
94
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:111 :5
71
95
|
72
96
LL | c: bool,
73
97
| ^
74
98
75
99
error: incorrect ordering of items (must be alphabetically ordered)
76
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:105 :5
100
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:121 :5
77
101
|
78
102
LL | b: bool,
79
103
| ^
80
104
|
81
105
note: should be placed before `c`
82
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:104 :5
106
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:120 :5
83
107
|
84
108
LL | c: bool,
85
109
| ^
86
110
87
111
error: incorrect ordering of items (must be alphabetically ordered)
88
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:125 :11
112
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:141 :11
89
113
|
90
114
LL | const B: bool;
91
115
| ^
92
116
|
93
117
note: should be placed before `C`
94
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:124 :11
118
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:140 :11
95
119
|
96
120
LL | const C: bool;
97
121
| ^
98
122
99
123
error: incorrect ordering of items (must be alphabetically ordered)
100
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:132 :8
124
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:148 :8
101
125
|
102
126
LL | fn b();
103
127
| ^
104
128
|
105
129
note: should be placed before `c`
106
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:131 :8
130
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:147 :8
107
131
|
108
132
LL | fn c();
109
133
| ^
110
134
111
135
error: incorrect ordering of trait items (defined order: [Const, Type, Fn])
112
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:139 :5
136
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:155 :5
113
137
|
114
138
LL | const A: bool;
115
139
| ^^^^^^^^^^^^^^
116
140
|
117
141
note: should be placed before `SomeType`
118
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:137 :5
142
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:153 :5
119
143
|
120
144
LL | type SomeType;
121
145
| ^^^^^^^^^^^^^^
122
146
123
147
error: incorrect ordering of items (must be alphabetically ordered)
124
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:155 :11
148
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:171 :11
125
149
|
126
150
LL | const B: bool = false;
127
151
| ^
128
152
|
129
153
note: should be placed before `C`
130
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:154 :11
154
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:170 :11
131
155
|
132
156
LL | const C: bool = false;
133
157
| ^
134
158
135
159
error: incorrect ordering of items (must be alphabetically ordered)
136
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:162 :8
160
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:178 :8
137
161
|
138
162
LL | fn b() {}
139
163
| ^
140
164
|
141
165
note: should be placed before `c`
142
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:161 :8
166
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:177 :8
143
167
|
144
168
LL | fn c() {}
145
169
| ^
146
170
147
171
error: incorrect ordering of impl items (defined order: [Const, Type, Fn])
148
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:173 :5
172
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:189 :5
149
173
|
150
174
LL | const A: bool = false;
151
175
| ^^^^^^^^^^^^^^^^^^^^^^
152
176
|
153
177
note: should be placed before `SomeType`
154
- --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:171 :5
178
+ --> tests/ui-toml/arbitrary_source_item_ordering/ordering_mixed.rs:187 :5
155
179
|
156
180
LL | type SomeType = ();
157
181
| ^^^^^^^^^^^^^^^^^^^
158
182
159
- error: aborting due to 13 previous errors
183
+ error: aborting due to 15 previous errors
160
184
0 commit comments