001df3f0ca
This reverts commit ea81c03960
.
Changed the case in trans_if where the conditional is _|_ - typed
but the block is terminated to return the result of the cond,
instead of nil.
This passes "make check" with optimization disabled as well as
enabled.
4 lines
108 B
Rust
4 lines
108 B
Rust
// error-pattern:quux
|
|
fn my_err(s: str) -> ! { log_err s; fail "quux"; }
|
|
fn main() { if my_err("bye") { } }
|