fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
3.2 KiB93 linesraw
1error: unreachable pattern
2  --> $DIR/match-range-fail-dominate.rs:6:7
3   |
4LL |       5 ..= 6 => { }
5   |       ^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/match-range-fail-dominate.rs:1:9
9   |
10LL | #![deny(unreachable_patterns, overlapping_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: unreachable pattern
14  --> $DIR/match-range-fail-dominate.rs:13:7
15   |
16LL |       4 ..= 6 => { }
17   |       ^^^^^^^
18
19error: unreachable pattern
20  --> $DIR/match-range-fail-dominate.rs:20:7
21   |
22LL |       4 ..= 6 => { }
23   |       ^^^^^^^
24
25error: unreachable pattern
26  --> $DIR/match-range-fail-dominate.rs:27:7
27   |
28LL |       'a' ..= 'z' => {}
29   |       ^^^^^^^^^^^
30
31warning: floating-point types cannot be used in patterns
32  --> $DIR/match-range-fail-dominate.rs:33:7
33   |
34LL |       0.01f64 ..= 6.5f64 => {}
35   |       ^^^^^^^
36   |
37   = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default
38   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
39   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
40
41warning: floating-point types cannot be used in patterns
42  --> $DIR/match-range-fail-dominate.rs:33:19
43   |
44LL |       0.01f64 ..= 6.5f64 => {}
45   |                   ^^^^^^
46   |
47   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
48   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
49
50warning: floating-point types cannot be used in patterns
51  --> $DIR/match-range-fail-dominate.rs:42:7
52   |
53LL |       0.02f64 => {}
54   |       ^^^^^^^
55   |
56   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
57   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
58
59error: unreachable pattern
60  --> $DIR/match-range-fail-dominate.rs:42:7
61   |
62LL |       0.02f64 => {}
63   |       ^^^^^^^
64
65warning: floating-point types cannot be used in patterns
66  --> $DIR/match-range-fail-dominate.rs:33:7
67   |
68LL |       0.01f64 ..= 6.5f64 => {}
69   |       ^^^^^^^
70   |
71   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
73
74warning: floating-point types cannot be used in patterns
75  --> $DIR/match-range-fail-dominate.rs:33:19
76   |
77LL |       0.01f64 ..= 6.5f64 => {}
78   |                   ^^^^^^
79   |
80   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
81   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
82
83warning: floating-point types cannot be used in patterns
84  --> $DIR/match-range-fail-dominate.rs:42:7
85   |
86LL |       0.02f64 => {}
87   |       ^^^^^^^
88   |
89   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
90   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
91
92error: aborting due to 5 previous errors
93