Philipp Krones 26ede3115f
Rollup merge of #5784 - matthiaskrgr:ice_5780, r=phansch
Fix out of bounds access by checking length equality BEFORE accessing by index.

Fixes #5780

changelog: fix out of bounds access in unnested_or_patterns lint.

Edit: I did not bother reducing a testcase from `librustc_typeck` crate but I can confirm that with the change the crash no longer occurs.
2020-07-13 15:59:45 +02:00
..
2020-07-03 21:22:23 -07:00
2020-07-01 13:05:41 +02:00
2020-07-03 21:22:23 -07:00
2020-07-03 21:22:23 -07:00
2020-07-06 18:35:58 +02:00
2020-07-03 21:22:23 -07:00
2020-07-03 18:23:36 +02:00
2020-07-10 15:20:00 +02:00