Commit fe67196
committed
Don't build the same matrix twice
The exact same logic was used in check_arms and check_match to build the
matrix of relevant patterns. It would actually probably have been a bug
if it was not the case, since exhaustiveness checking should be the same
as checking reachability of an additional `_ => ...` match branch.1 parent 2da942f commit fe67196
1 file changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 251 | | |
258 | 252 | | |
259 | 253 | | |
| |||
403 | 397 | | |
404 | 398 | | |
405 | 399 | | |
406 | | - | |
| 400 | + | |
407 | 401 | | |
408 | | - | |
| 402 | + | |
409 | 403 | | |
410 | | - | |
| 404 | + | |
411 | 405 | | |
412 | 406 | | |
413 | 407 | | |
| |||
485 | 479 | | |
486 | 480 | | |
487 | 481 | | |
| 482 | + | |
488 | 483 | | |
489 | 484 | | |
490 | 485 | | |
| |||
0 commit comments