-
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
LLVM assertion failure with moving boxed DST #35546
Comments
First occurs in nightly-2016-08-03 which turns on mir by default, does not occur on nightly-2016-08-03 with -Z orbit=off. |
Using |
Problem seems to be that we call the |
I have a fix for this, running the full |
invoke drop glue with a ptr to (data, meta) This is done by creating a little space on the stack. Hokey, but it's the simplest fix I can see, and I am in "kill regressions" mode right now. Fixes rust-lang#35546 r? @eddyb
The following successfully typechecks on
rustc 1.12.0-nightly (b30eff7ba 2016-08-05)
, but generates an LLVM assertion failure:Error:
Note that replacing
*head = node.next
with*head = node.next.take()
(and makingnode
mutable) allows compilation to succeed.The text was updated successfully, but these errors were encountered: