Skip to content

Commit

Permalink
Rollup merge of rust-lang#66497 - Nadrieril:fix-53820, r=varkor
Browse files Browse the repository at this point in the history
Fix rust-lang#53820

This fixes ICE rust-lang#53820 by being more clever when matching large arrays with slice patterns.
In particular, it avoids treating large arrays like large tuples, and instead reuses the `VarLenSlice` constructor behaviour to only consider as little values as needed.
As a side-effect, such matches also get improved diagnostics, by reporting `[true, ..]` missing instead of `[true, _, _, _, _, _, _, _]`.
  • Loading branch information
Centril authored Nov 20, 2019
2 parents 3ef2384 + 1425ae1 commit 2d6e376
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 139 deletions.
Loading

0 comments on commit 2d6e376

Please sign in to comment.