-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[beta] Backport of #6375 - field_reassign_with_default fix #6537
Conversation
The default value for a field type does not necessarily match the default value for that field in the struct Default.
There is already an assertion that consecutive lines assign to a struct field.
r? @ebroto (rust-highfive has picked a reviewer for you, use r? to override) |
|
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.
With the pinned nightly we can test backports to our beta branch now tada
So, to make sure I understand, I should go ahead and merge this to our beta branch before we open the PR against rust-lang/rust
?
Yes, you should be able to |
@bors r+ |
📌 Commit fa75f63 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
With the pinned nightly we can test backports to our beta branch now 🎉
cc #6515
changelog: beta 1.50: Backport of private fields fix in [
field_reassign_with_default
] lints