-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
trans::datum does something incorrect for structs with destructors #6572
Comments
There's a similar comment in |
This comment is just out of date. It was referring to the drop field that we add to structs with dtors; we used to insert this in the front, requiring that every index be offset by 1, but I changed it to insert in the back, avoiding that problem. I'll open a PR to remove the FIXME. |
@nikomatsakis can this be closed? |
The FIXME is still present, so to close we need to open a PR (and perhaps add a test -- though one probably exists), but yes I believe there is no actual bug here. |
@nikomatsakis |
Let's close. |
Fix bad suggestion for `match_single_binding` lint Fix a bad suggestion that needs curly braces when the target `match` is the body of an arm. Fixes rust-lang#6572 changelog: none
A comment in
trans::datum::try_deref
suggests that deref'ing a newtype struct with a destructor isn't being done correctly.The text was updated successfully, but these errors were encountered: