about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-11-20 12:58:29 +0100
committerGitHub <noreply@github.com>2019-11-20 12:58:29 +0100
commit2d6e3764b4e2fecf1b1a8c3a174e93906d555703 (patch)
tree3c1eba96914c206d082b1d12dad17368607416b6 /src/libstd/sys/unix/stack_overflow.rs
parent3ef2384e50a44bd6ac5223da586bd0be63296383 (diff)
parent1425ae1154f3541a32e9ca607c09ce50cfb1298e (diff)
downloadrust-2d6e3764b4e2fecf1b1a8c3a174e93906d555703.tar.gz
rust-2d6e3764b4e2fecf1b1a8c3a174e93906d555703.zip
Rollup merge of #66497 - Nadrieril:fix-53820, r=varkor
Fix #53820

This fixes ICE #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, _, _, _, _, _, _, _]`.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions