Skip to content

-Z unpretty=expanded does not emit anything when abort happens during lowering  #60857

Closed
@Centril

Description

@Centril

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-prettyArea: Pretty printing (including `-Z unpretty`)E-help-wantedCall for participation: Help is requested to fix this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions