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
9.1 KiB223 linesraw
1error: floating-point types cannot be used in patterns
2  --> $DIR/issue-41255.rs:11:9
3   |
4LL |         5.0 => {},
5   |         ^^^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-41255.rs:6:11
9   |
10LL | #![forbid(illegal_floating_point_literal_pattern)]
11   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
14
15error: floating-point types cannot be used in patterns
16  --> $DIR/issue-41255.rs:15:9
17   |
18LL |         5.0f32 => {},
19   |         ^^^^^^
20   |
21   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
23
24error: floating-point types cannot be used in patterns
25  --> $DIR/issue-41255.rs:19:10
26   |
27LL |         -5.0 => {},
28   |          ^^^
29   |
30   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
32
33error: floating-point types cannot be used in patterns
34  --> $DIR/issue-41255.rs:23:9
35   |
36LL |         1.0 .. 33.0 => {},
37   |         ^^^
38   |
39   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
41
42error: floating-point types cannot be used in patterns
43  --> $DIR/issue-41255.rs:23:16
44   |
45LL |         1.0 .. 33.0 => {},
46   |                ^^^^
47   |
48   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
49   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
50
51error: floating-point types cannot be used in patterns
52  --> $DIR/issue-41255.rs:31:9
53   |
54LL |         39.0 ..= 70.0 => {},
55   |         ^^^^
56   |
57   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
58   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
59
60error: floating-point types cannot be used in patterns
61  --> $DIR/issue-41255.rs:31:18
62   |
63LL |         39.0 ..= 70.0 => {},
64   |                  ^^^^
65   |
66   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
67   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
68
69error: floating-point types cannot be used in patterns
70  --> $DIR/issue-41255.rs:40:11
71   |
72LL |         ..71.0 => {}
73   |           ^^^^
74   |
75   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
76   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
77
78error: floating-point types cannot be used in patterns
79  --> $DIR/issue-41255.rs:45:12
80   |
81LL |         ..=72.0 => {}
82   |            ^^^^
83   |
84   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
85   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
86
87error: floating-point types cannot be used in patterns
88  --> $DIR/issue-41255.rs:50:9
89   |
90LL |         71.0.. => {}
91   |         ^^^^
92   |
93   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
94   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
95
96error: floating-point types cannot be used in patterns
97  --> $DIR/issue-41255.rs:60:10
98   |
99LL |         (3.14, 1) => {},
100   |          ^^^^
101   |
102   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
103   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
104
105error: floating-point types cannot be used in patterns
106  --> $DIR/issue-41255.rs:69:18
107   |
108LL |         Foo { x: 2.0 } => {},
109   |                  ^^^
110   |
111   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
112   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
113
114error: floating-point types cannot be used in patterns
115  --> $DIR/issue-41255.rs:11:9
116   |
117LL |         5.0 => {},
118   |         ^^^
119   |
120   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
121   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
122
123error: floating-point types cannot be used in patterns
124  --> $DIR/issue-41255.rs:15:9
125   |
126LL |         5.0f32 => {},
127   |         ^^^^^^
128   |
129   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
130   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
131
132error: floating-point types cannot be used in patterns
133  --> $DIR/issue-41255.rs:19:10
134   |
135LL |         -5.0 => {},
136   |          ^^^
137   |
138   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
139   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
140
141error: floating-point types cannot be used in patterns
142  --> $DIR/issue-41255.rs:23:9
143   |
144LL |         1.0 .. 33.0 => {},
145   |         ^^^
146   |
147   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
148   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
149
150error: floating-point types cannot be used in patterns
151  --> $DIR/issue-41255.rs:23:16
152   |
153LL |         1.0 .. 33.0 => {},
154   |                ^^^^
155   |
156   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
158
159error: floating-point types cannot be used in patterns
160  --> $DIR/issue-41255.rs:31:9
161   |
162LL |         39.0 ..= 70.0 => {},
163   |         ^^^^
164   |
165   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
166   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
167
168error: floating-point types cannot be used in patterns
169  --> $DIR/issue-41255.rs:31:18
170   |
171LL |         39.0 ..= 70.0 => {},
172   |                  ^^^^
173   |
174   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
175   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
176
177error: floating-point types cannot be used in patterns
178  --> $DIR/issue-41255.rs:40:11
179   |
180LL |         ..71.0 => {}
181   |           ^^^^
182   |
183   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
184   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
185
186error: floating-point types cannot be used in patterns
187  --> $DIR/issue-41255.rs:45:12
188   |
189LL |         ..=72.0 => {}
190   |            ^^^^
191   |
192   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
193   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
194
195error: floating-point types cannot be used in patterns
196  --> $DIR/issue-41255.rs:50:9
197   |
198LL |         71.0.. => {}
199   |         ^^^^
200   |
201   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
202   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
203
204error: floating-point types cannot be used in patterns
205  --> $DIR/issue-41255.rs:60:10
206   |
207LL |         (3.14, 1) => {},
208   |          ^^^^
209   |
210   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
211   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
212
213error: floating-point types cannot be used in patterns
214  --> $DIR/issue-41255.rs:69:18
215   |
216LL |         Foo { x: 2.0 } => {},
217   |                  ^^^
218   |
219   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
220   = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
221
222error: aborting due to 24 previous errors
223