rust/compiler
Matthias Krüger 13c60669cc
Rollup merge of #91212 - compiler-errors:issue91206, r=oli-obk
Fix ICE due to out-of-bounds statement index when reporting borrowck error

Replace an `[index]` with a `.get` when `statement_index` points to a basic-block terminator (and is therefore out-of-bounds in the statements list).

Fixes #91206
Cc ``@camsteffen``
r? ``@oli-obk``
2021-11-26 16:02:26 +01:00
..
2021-11-19 07:52:59 +11:00
2021-11-25 16:34:30 +00:00
2021-11-23 10:34:16 -08:00
2021-11-15 10:14:29 +01:00
2021-11-21 08:15:21 -06:00