Skip to content

trans trips assertion when using result of bottom-typed do-while #814

Closed
@msullivan

Description

@msullivan
fn main() {
    let x: int = do { fail } while (true);
}

results in

rt: 439d:main:main:                   upcall fail 'Assertion !*terminated failed', ../src/comp/lib/llvm.rs:927

Tim, you've fixed this for a bunch of other cases; do you have time to take this one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions