fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.0 KiB50 linesraw
1warning: multiple patterns covering the same range
2  --> $DIR/issue-43253.rs:16:9
3   |
4LL |         1..10 => {},
5   |         ----- this range overlaps on `9i32`
6LL |         9..=10 => {},
7   |         ^^^^^^ overlapping patterns
8   |
9note: the lint level is defined here
10  --> $DIR/issue-43253.rs:4:9
11   |
12LL | #![warn(overlapping_patterns)]
13   |         ^^^^^^^^^^^^^^^^^^^^
14
15warning: unreachable pattern
16  --> $DIR/issue-43253.rs:29:9
17   |
18LL |         9 => {},
19   |         ^
20   |
21note: the lint level is defined here
22  --> $DIR/issue-43253.rs:3:9
23   |
24LL | #![warn(unreachable_patterns)]
25   |         ^^^^^^^^^^^^^^^^^^^^
26
27warning: unreachable pattern
28  --> $DIR/issue-43253.rs:35:9
29   |
30LL |         8..=9 => {},
31   |         ^^^^^
32
33warning: unreachable pattern
34  --> $DIR/issue-43253.rs:41:9
35   |
36LL |         6 => {},
37   |         ^
38
39warning: unreachable pattern
40  --> $DIR/issue-43253.rs:43:9
41   |
42LL |         9..=9 => {},
43   |         ^^^^^
44
45warning: unreachable pattern
46  --> $DIR/issue-43253.rs:44:9
47   |
48LL |         6 => {},
49   |         ^
50