Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
msullivan opened this issue Aug 11, 2011 · 1 comment
Closed

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

msullivan opened this issue Aug 11, 2011 · 1 comment

Comments

@msullivan
Copy link
Contributor

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?

@ghost ghost assigned catamorphism Aug 11, 2011
@catamorphism
Copy link
Contributor

Sure, I'll look at it.

ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants