From: Mazdak Farrokhzad Date: Wed, 20 Nov 2019 11:58:29 +0000 (+0100) Subject: Rollup merge of #66497 - Nadrieril:fix-53820, r=varkor X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=2d6e3764b4e2fecf1b1a8c3a174e93906d555703;p=rust.git 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, _, _, _, _, _, _, _]`. --- 2d6e3764b4e2fecf1b1a8c3a174e93906d555703