diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2016-06-08 19:26:19 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2016-06-09 15:16:15 +0300 |
| commit | 798be90648d88f902f6381c859df451d7ddf05d2 (patch) | |
| tree | fda00c2df3cad4944355db1a6980d57133291e5f /src/libsyntax/errors | |
| parent | 6405527ded784289b4e77d531b57e010cd5fae52 (diff) | |
| download | rust-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
