-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Codegen bug: dest == expr::Ignore || bcx.unreachable.get() #11709
Comments
I'll take it |
Different testcases:
EDIT: Found more testcases |
Interesting. I'm looking into it. Not sure what is causing this, though. |
Another testcase: fn main() { let _r = { box(GC) ~&1; }; } (The |
Even simpler example:
Debug Log
EDIT: Making the block |
My final testcase: fn main() { let _r = {}; } |
Could this be related to the no-argument version of lambda block expressions that were used in |
@jrupac I don't see how it could be related. The error here has to do with a |
Yet another test case to consider: struct S {x:()}
fn main(){
let s : S = S{x: {println!("a");} };
} |
@bstrie thanks! I'll get back to debug this in a bit |
Was trying to find another bug, found this bug!
That code will fail with
The text was updated successfully, but these errors were encountered: