-
Notifications
You must be signed in to change notification settings - Fork 179
Assign outer_attrs in IfLetExpr constructor #388
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
Conversation
d6205f8
to
a601990
Compare
Can't really say anything about the change (it looks correct from the C++ pov, but maybe the field should be removed as the comment is saying it is not allowed). |
From @philberty in #380:
My understanding is that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks great.
This is correct. The field was once thought to not be allowed, but that was an incorrect assumption (or has changed in a more recent version of the Rust reference). |
Thanks for shedding light on the situation! I'll rebase and add more explanation in the commit message |
is this ready to merge @CohenArthur ? |
The `outer_attrs` member was not used in the IfLetExpr type, as it was believed to be forbidden. However, that assumption was false and outer_attrs are indeed allowed here. This commit also fixes the unused warning for the `outer_attrs` constructor's argument, which was not assigned before.
a601990
to
8ee80ab
Compare
Yes, thanks! I've added a bit more background in the commit's message |
bors r+ |
Build succeeded: |
Closes #360
This fixes IfLetExpr's behavior and removes the previous unused warning as well