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