about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2016-06-08 19:26:19 +0300
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2016-06-09 15:16:15 +0300
commit798be90648d88f902f6381c859df451d7ddf05d2 (patch)
treefda00c2df3cad4944355db1a6980d57133291e5f /src/libsyntax/errors
parent6405527ded784289b4e77d531b57e010cd5fae52 (diff)
downloadrust-798be90648d88f902f6381c859df451d7ddf05d2.tar.gz
rust-798be90648d88f902f6381c859df451d7ddf05d2.zip
introduce an `unreachable` terminator
Use it instead of a `panic` for inexhaustive matches and correct the
comment. I think we trust our match-generation algorithm enough to
generate these blocks, and not generating an `unreachable` means that
LLVM won't optimize `match void() {}` to an `unreachable`.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions