11error: 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
33 |
44LL | use std::rc::Weak;
55 | ^^^^
66 |
77note: 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
99 |
1010LL | const SNAKE_CASE: &str = "zzzzzzzz";
1111 | ^^^^^^^^^^
1212 = note: `-D clippy::arbitrary-source-item-ordering` implied by `-D warnings`
1313 = help: to override `-D warnings` add `#[allow(clippy::arbitrary_source_item_ordering)]`
1414
1515error: 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
1717 |
1818LL | / impl CloneSelf for StructOrdered {
19+ LL | |
1920LL | | fn clone_self(&self) -> Self {
2021LL | | Self {
21- LL | | a: true,
2222... |
2323LL | | }
2424 | |_^
2525 |
2626note: 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
2828 |
2929LL | / impl Default for StructOrdered {
3030LL | | fn default() -> Self {
@@ -35,55 +35,54 @@ LL | | }
3535 | |_^
3636
3737error: 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
3939 |
4040LL | const ZIS_SHOULD_BE_REALLY_EARLY: () = ();
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
4242 |
4343note: 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
4545 |
4646LL | trait TraitUnorderedItemKinds {
4747 | ^^^^^^^^^^^^^^^^^^^^^^^
4848
4949error: 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
5151 |
5252LL | impl BasicEmptyTrait for StructOrdered {}
5353 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5454 |
5555note: 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
5757 |
5858LL | / impl TraitUnordered for StructUnordered {
5959LL | | const A: bool = false;
6060LL | | const C: bool = false;
6161LL | | const B: bool = false;
6262... |
63- LL | | fn b() {}
6463LL | | }
6564 | |_^
6665
6766error: 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
6968 |
7069LL | mod this_is_in_the_wrong_position {
7170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7271 |
7372note: 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
7574 |
7675LL | fn main() {
7776 | ^^^^
7877
7978error: 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
8180 |
8281LL | const ZIS_SHOULD_BE_EVEN_EARLIER: () = ();
8382 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
8483 |
8584note: 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
8786 |
8887LL | struct ZisShouldBeBeforeZeMainFn;
8988 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -101,121 +100,121 @@ LL | const BEFORE: i8 = 0;
101100 | ^^^^^^
102101
103102error: 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
105104 |
106105LL | B,
107106 | ^
108107 |
109108note: 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
111110 |
112111LL | C,
113112 | ^
114113
115114error: 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
117116 |
118117LL | b: bool,
119118 | ^
120119 |
121120note: 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
123122 |
124123LL | c: bool,
125124 | ^
126125
127126error: 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
129128 |
130129LL | b: bool,
131130 | ^
132131 |
133132note: 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
135134 |
136135LL | c: bool,
137136 | ^
138137
139138error: 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
141140 |
142141LL | const B: bool;
143142 | ^
144143 |
145144note: 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
147146 |
148147LL | const C: bool;
149148 | ^
150149
151150error: 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
153152 |
154153LL | fn b();
155154 | ^
156155 |
157156note: 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
159158 |
160159LL | fn c();
161160 | ^
162161
163162error: 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
165164 |
166165LL | const A: bool;
167166 | ^^^^^^^^^^^^^^
168167 |
169168note: 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
171170 |
172171LL | type SomeType;
173172 | ^^^^^^^^^^^^^^
174173
175174error: 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
177176 |
178177LL | const B: bool = false;
179178 | ^
180179 |
181180note: 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
183182 |
184183LL | const C: bool = false;
185184 | ^
186185
187186error: 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
189188 |
190189LL | fn b() {}
191190 | ^
192191 |
193192note: 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
195194 |
196195LL | fn c() {}
197196 | ^
198197
199198error: 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
201200 |
202201LL | const A: bool = false;
203202 | ^^^^^^^^^^^^^^^^^^^^^^
204203 |
205204note: 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
207206 |
208207LL | type SomeType = ();
209208 | ^^^^^^^^^^^^^^^^^^^
210209
211210error: 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
213212 |
214213LL | const A: i8 = 1;
215214 | ^
216215 |
217216note: 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
219218 |
220219LL | const C: i8 = 0;
221220 | ^
0 commit comments