about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-12-25 18:14:50 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2018-01-13 21:17:19 +0200
commitc1281b41ecaec037f2e2d7fd75cd0c714dae3f7c (patch)
tree787fb1247f6d77bb90ac793e3d256c12a97992b3 /src/rustllvm/PassWrapper.cpp
parente6072a7b3835f1875e81c9fd27799f9b20a0770c (diff)
downloadrust-c1281b41ecaec037f2e2d7fd75cd0c714dae3f7c.tar.gz
rust-c1281b41ecaec037f2e2d7fd75cd0c714dae3f7c.zip
check_match: fix handling of privately uninhabited types
the match-checking code used to use TyErr for signaling "unknown,
inhabited" types for a long time. It had been switched to using the
exact type in #38069, to handle uninhabited types.

However, in #39980, we discovered that we still needed the "unknown
inhabited" logic, but I used `()` instead of `TyErr` to handle that.
Revert to using `TyErr` to fix that problem.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions