about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-12-21 16:15:16 +0000
committerbors <bors@rust-lang.org>2017-12-21 16:15:16 +0000
commitb7b52cc8bf2bcc4cbd223a4b61fe3e35e798f6e2 (patch)
treeb7e406e6dd07ffd6ad43ab619c06ca550f669e26 /src/libsyntax/parse/parser.rs
parenteff3de0927c36e6483ccb8a35c3d2da6e063de0b (diff)
parent8dfc47a4c9728ae7edcfb6a51515af00db994641 (diff)
downloadrust-b7b52cc8bf2bcc4cbd223a4b61fe3e35e798f6e2.tar.gz
rust-b7b52cc8bf2bcc4cbd223a4b61fe3e35e798f6e2.zip
Auto merge of #46877 - Deewiant:gh46843, r=eddyb
MIR: terminate unreachable blocks in construct_const

Fixes #46843.

#45821 added unreachable blocks in matches, which were terminated in
construct_fn but not in construct_const, causing a panic due to "no
terminator on block" when constants involved matching on enums.

The "unimplemented expression type" error may go away in the future, the
key is that we see the E0015 about using a non-const function and then
don't ICE.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions