fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
13.1 KiB429 linesraw
1error: float literals must have an integer part
2  --> $DIR/recover-range-pats.rs:22:12
3   |
4LL |     if let .0..Y = 0 {}
5   |            ^^ help: must have an integer part: `0.0`
6
7error: float literals must have an integer part
8  --> $DIR/recover-range-pats.rs:24:16
9   |
10LL |     if let X.. .0 = 0 {}
11   |                ^^ help: must have an integer part: `0.0`
12
13error: float literals must have an integer part
14  --> $DIR/recover-range-pats.rs:35:12
15   |
16LL |     if let .0..=Y = 0 {}
17   |            ^^ help: must have an integer part: `0.0`
18
19error: float literals must have an integer part
20  --> $DIR/recover-range-pats.rs:37:16
21   |
22LL |     if let X..=.0 = 0 {}
23   |                ^^ help: must have an integer part: `0.0`
24
25error: float literals must have an integer part
26  --> $DIR/recover-range-pats.rs:50:12
27   |
28LL |     if let .0...Y = 0 {}
29   |            ^^ help: must have an integer part: `0.0`
30
31error: float literals must have an integer part
32  --> $DIR/recover-range-pats.rs:53:17
33   |
34LL |     if let X... .0 = 0 {}
35   |                 ^^ help: must have an integer part: `0.0`
36
37error: float literals must have an integer part
38  --> $DIR/recover-range-pats.rs:63:12
39   |
40LL |     if let .0.. = 0 {}
41   |            ^^ help: must have an integer part: `0.0`
42
43error[E0586]: inclusive range with no end
44  --> $DIR/recover-range-pats.rs:69:13
45   |
46LL |     if let 0..= = 0 {}
47   |             ^^^ help: use `..` instead
48   |
49   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
50
51error[E0586]: inclusive range with no end
52  --> $DIR/recover-range-pats.rs:70:13
53   |
54LL |     if let X..= = 0 {}
55   |             ^^^ help: use `..` instead
56   |
57   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
58
59error[E0586]: inclusive range with no end
60  --> $DIR/recover-range-pats.rs:71:16
61   |
62LL |     if let true..= = 0 {}
63   |                ^^^ help: use `..` instead
64   |
65   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
66
67error: float literals must have an integer part
68  --> $DIR/recover-range-pats.rs:73:12
69   |
70LL |     if let .0..= = 0 {}
71   |            ^^ help: must have an integer part: `0.0`
72
73error[E0586]: inclusive range with no end
74  --> $DIR/recover-range-pats.rs:73:14
75   |
76LL |     if let .0..= = 0 {}
77   |              ^^^ help: use `..` instead
78   |
79   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
80
81error[E0586]: inclusive range with no end
82  --> $DIR/recover-range-pats.rs:79:13
83   |
84LL |     if let 0... = 0 {}
85   |             ^^^ help: use `..` instead
86   |
87   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
88
89error[E0586]: inclusive range with no end
90  --> $DIR/recover-range-pats.rs:80:13
91   |
92LL |     if let X... = 0 {}
93   |             ^^^ help: use `..` instead
94   |
95   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
96
97error[E0586]: inclusive range with no end
98  --> $DIR/recover-range-pats.rs:81:16
99   |
100LL |     if let true... = 0 {}
101   |                ^^^ help: use `..` instead
102   |
103   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
104
105error: float literals must have an integer part
106  --> $DIR/recover-range-pats.rs:83:12
107   |
108LL |     if let .0... = 0 {}
109   |            ^^ help: must have an integer part: `0.0`
110
111error[E0586]: inclusive range with no end
112  --> $DIR/recover-range-pats.rs:83:14
113   |
114LL |     if let .0... = 0 {}
115   |              ^^^ help: use `..` instead
116   |
117   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
118
119error: float literals must have an integer part
120  --> $DIR/recover-range-pats.rs:93:15
121   |
122LL |     if let .. .0 = 0 {}
123   |               ^^ help: must have an integer part: `0.0`
124
125error: float literals must have an integer part
126  --> $DIR/recover-range-pats.rs:103:15
127   |
128LL |     if let ..=.0 = 0 {}
129   |               ^^ help: must have an integer part: `0.0`
130
131error: range-to patterns with `...` are not allowed
132  --> $DIR/recover-range-pats.rs:109:12
133   |
134LL |     if let ...3 = 0 {}
135   |            ^^^ help: use `..=` instead
136
137error: range-to patterns with `...` are not allowed
138  --> $DIR/recover-range-pats.rs:111:12
139   |
140LL |     if let ...Y = 0 {}
141   |            ^^^ help: use `..=` instead
142
143error: range-to patterns with `...` are not allowed
144  --> $DIR/recover-range-pats.rs:113:12
145   |
146LL |     if let ...true = 0 {}
147   |            ^^^ help: use `..=` instead
148
149error: float literals must have an integer part
150  --> $DIR/recover-range-pats.rs:116:15
151   |
152LL |     if let ....3 = 0 {}
153   |               ^^ help: must have an integer part: `0.3`
154
155error: range-to patterns with `...` are not allowed
156  --> $DIR/recover-range-pats.rs:116:12
157   |
158LL |     if let ....3 = 0 {}
159   |            ^^^ help: use `..=` instead
160
161error: range-to patterns with `...` are not allowed
162  --> $DIR/recover-range-pats.rs:137:17
163   |
164LL |             let ...$e;
165   |                 ^^^ help: use `..=` instead
166...
167LL |     mac!(0);
168   |     -------- in this macro invocation
169
170error[E0586]: inclusive range with no end
171  --> $DIR/recover-range-pats.rs:141:19
172   |
173LL |             let $e...;
174   |                   ^^^ help: use `..` instead
175...
176LL |     mac!(0);
177   |     -------- in this macro invocation
178   |
179   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
180
181error[E0586]: inclusive range with no end
182  --> $DIR/recover-range-pats.rs:142:19
183   |
184LL |             let $e..=;
185   |                   ^^^ help: use `..` instead
186...
187LL |     mac!(0);
188   |     -------- in this macro invocation
189   |
190   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
191
192error: `...` range patterns are deprecated
193  --> $DIR/recover-range-pats.rs:42:13
194   |
195LL |     if let 0...3 = 0 {}
196   |             ^^^ help: use `..=` for an inclusive range
197   |
198note: lint level defined here
199  --> $DIR/recover-range-pats.rs:8:9
200   |
201LL | #![deny(ellipsis_inclusive_range_patterns)]
202   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203
204error: `...` range patterns are deprecated
205  --> $DIR/recover-range-pats.rs:43:13
206   |
207LL |     if let 0...Y = 0 {}
208   |             ^^^ help: use `..=` for an inclusive range
209
210error: `...` range patterns are deprecated
211  --> $DIR/recover-range-pats.rs:44:13
212   |
213LL |     if let X...3 = 0 {}
214   |             ^^^ help: use `..=` for an inclusive range
215
216error: `...` range patterns are deprecated
217  --> $DIR/recover-range-pats.rs:45:13
218   |
219LL |     if let X...Y = 0 {}
220   |             ^^^ help: use `..=` for an inclusive range
221
222error: `...` range patterns are deprecated
223  --> $DIR/recover-range-pats.rs:46:16
224   |
225LL |     if let true...Y = 0 {}
226   |                ^^^ help: use `..=` for an inclusive range
227
228error: `...` range patterns are deprecated
229  --> $DIR/recover-range-pats.rs:48:13
230   |
231LL |     if let X...true = 0 {}
232   |             ^^^ help: use `..=` for an inclusive range
233
234error: `...` range patterns are deprecated
235  --> $DIR/recover-range-pats.rs:50:14
236   |
237LL |     if let .0...Y = 0 {}
238   |              ^^^ help: use `..=` for an inclusive range
239
240error: `...` range patterns are deprecated
241  --> $DIR/recover-range-pats.rs:53:13
242   |
243LL |     if let X... .0 = 0 {}
244   |             ^^^ help: use `..=` for an inclusive range
245
246error: `...` range patterns are deprecated
247  --> $DIR/recover-range-pats.rs:126:20
248   |
249LL |             let $e1...$e2;
250   |                    ^^^ help: use `..=` for an inclusive range
251...
252LL |     mac2!(0, 1);
253   |     ------------ in this macro invocation
254
255error[E0029]: only char and numeric types are allowed in range patterns
256  --> $DIR/recover-range-pats.rs:20:12
257   |
258LL |     if let true..Y = 0 {}
259   |            ^^^^  - this is of type `u8`
260   |            |
261   |            this is of type `bool` but it should be `char` or numeric
262
263error[E0029]: only char and numeric types are allowed in range patterns
264  --> $DIR/recover-range-pats.rs:21:15
265   |
266LL |     if let X..true = 0 {}
267   |            -  ^^^^ this is of type `bool` but it should be `char` or numeric
268   |            |
269   |            this is of type `u8`
270
271error[E0308]: mismatched types
272  --> $DIR/recover-range-pats.rs:22:12
273   |
274LL |     if let .0..Y = 0 {}
275   |            ^^  - this is of type `u8`
276   |            |
277   |            expected integer, found floating-point number
278
279error[E0308]: mismatched types
280  --> $DIR/recover-range-pats.rs:24:16
281   |
282LL |     if let X.. .0 = 0 {}
283   |            -   ^^   - this expression has type `u8`
284   |            |   |
285   |            |   expected integer, found floating-point number
286   |            this is of type `u8`
287
288error[E0029]: only char and numeric types are allowed in range patterns
289  --> $DIR/recover-range-pats.rs:33:12
290   |
291LL |     if let true..=Y = 0 {}
292   |            ^^^^   - this is of type `u8`
293   |            |
294   |            this is of type `bool` but it should be `char` or numeric
295
296error[E0029]: only char and numeric types are allowed in range patterns
297  --> $DIR/recover-range-pats.rs:34:16
298   |
299LL |     if let X..=true = 0 {}
300   |            -   ^^^^ this is of type `bool` but it should be `char` or numeric
301   |            |
302   |            this is of type `u8`
303
304error[E0308]: mismatched types
305  --> $DIR/recover-range-pats.rs:35:12
306   |
307LL |     if let .0..=Y = 0 {}
308   |            ^^   - this is of type `u8`
309   |            |
310   |            expected integer, found floating-point number
311
312error[E0308]: mismatched types
313  --> $DIR/recover-range-pats.rs:37:16
314   |
315LL |     if let X..=.0 = 0 {}
316   |            -   ^^   - this expression has type `u8`
317   |            |   |
318   |            |   expected integer, found floating-point number
319   |            this is of type `u8`
320
321error[E0029]: only char and numeric types are allowed in range patterns
322  --> $DIR/recover-range-pats.rs:46:12
323   |
324LL |     if let true...Y = 0 {}
325   |            ^^^^   - this is of type `u8`
326   |            |
327   |            this is of type `bool` but it should be `char` or numeric
328
329error[E0029]: only char and numeric types are allowed in range patterns
330  --> $DIR/recover-range-pats.rs:48:16
331   |
332LL |     if let X...true = 0 {}
333   |            -   ^^^^ this is of type `bool` but it should be `char` or numeric
334   |            |
335   |            this is of type `u8`
336
337error[E0308]: mismatched types
338  --> $DIR/recover-range-pats.rs:50:12
339   |
340LL |     if let .0...Y = 0 {}
341   |            ^^   - this is of type `u8`
342   |            |
343   |            expected integer, found floating-point number
344
345error[E0308]: mismatched types
346  --> $DIR/recover-range-pats.rs:53:17
347   |
348LL |     if let X... .0 = 0 {}
349   |            -    ^^   - this expression has type `u8`
350   |            |    |
351   |            |    expected integer, found floating-point number
352   |            this is of type `u8`
353
354error[E0029]: only char and numeric types are allowed in range patterns
355  --> $DIR/recover-range-pats.rs:61:12
356   |
357LL |     if let true.. = 0 {}
358   |            ^^^^ this is of type `bool` but it should be `char` or numeric
359
360error[E0308]: mismatched types
361  --> $DIR/recover-range-pats.rs:63:12
362   |
363LL |     if let .0.. = 0 {}
364   |            ^^ expected integer, found floating-point number
365
366error[E0029]: only char and numeric types are allowed in range patterns
367  --> $DIR/recover-range-pats.rs:71:12
368   |
369LL |     if let true..= = 0 {}
370   |            ^^^^ this is of type `bool` but it should be `char` or numeric
371
372error[E0308]: mismatched types
373  --> $DIR/recover-range-pats.rs:73:12
374   |
375LL |     if let .0..= = 0 {}
376   |            ^^ expected integer, found floating-point number
377
378error[E0029]: only char and numeric types are allowed in range patterns
379  --> $DIR/recover-range-pats.rs:81:12
380   |
381LL |     if let true... = 0 {}
382   |            ^^^^ this is of type `bool` but it should be `char` or numeric
383
384error[E0308]: mismatched types
385  --> $DIR/recover-range-pats.rs:83:12
386   |
387LL |     if let .0... = 0 {}
388   |            ^^ expected integer, found floating-point number
389
390error[E0029]: only char and numeric types are allowed in range patterns
391  --> $DIR/recover-range-pats.rs:91:14
392   |
393LL |     if let ..true = 0 {}
394   |              ^^^^ this is of type `bool` but it should be `char` or numeric
395
396error[E0308]: mismatched types
397  --> $DIR/recover-range-pats.rs:93:15
398   |
399LL |     if let .. .0 = 0 {}
400   |               ^^ expected integer, found floating-point number
401
402error[E0029]: only char and numeric types are allowed in range patterns
403  --> $DIR/recover-range-pats.rs:101:15
404   |
405LL |     if let ..=true = 0 {}
406   |               ^^^^ this is of type `bool` but it should be `char` or numeric
407
408error[E0308]: mismatched types
409  --> $DIR/recover-range-pats.rs:103:15
410   |
411LL |     if let ..=.0 = 0 {}
412   |               ^^ expected integer, found floating-point number
413
414error[E0029]: only char and numeric types are allowed in range patterns
415  --> $DIR/recover-range-pats.rs:113:15
416   |
417LL |     if let ...true = 0 {}
418   |               ^^^^ this is of type `bool` but it should be `char` or numeric
419
420error[E0308]: mismatched types
421  --> $DIR/recover-range-pats.rs:116:15
422   |
423LL |     if let ....3 = 0 {}
424   |               ^^ expected integer, found floating-point number
425
426error: aborting due to 60 previous errors
427
428Some errors have detailed explanations: E0029, E0308, E0586.
429For more information about an error, try `rustc --explain E0029`.