-Z unpretty=expanded does not emit anything when abort happens during lowering · Issue #60857 · rust-lang/rust (original) (raw)

For example, say I have:

// compile-flags: -Z unpretty=expanded

fn main() { if true && let 0 = 1 {} }

and then I have some abort_if_errors in HIR lowering that this will trigger.
This causes an error and no prettied output.

Meanwhile, I expect compilation to stop after dumping the prettied output.

cc @Zoxc @oli-obk