Skip to content
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

Merged
merged 3 commits into from
Jan 3, 2021

Conversation

flip1995
Copy link
Member

@flip1995 flip1995 commented Jan 2, 2021

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

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.
@rust-highfive
Copy link

r? @ebroto

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive
Copy link

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against beta. Please double check that you specified the right target!

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 2, 2021
Copy link
Member

@ebroto ebroto left a 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?

@ebroto ebroto added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Jan 2, 2021
@flip1995
Copy link
Member Author

flip1995 commented Jan 3, 2021

Yes, you should be able to bors r+ this with the pinned nightly. If it is then merged, I can open a rust backport PR.

@ebroto
Copy link
Member

ebroto commented Jan 3, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Jan 3, 2021

📌 Commit fa75f63 has been approved by ebroto

@bors
Copy link
Contributor

bors commented Jan 3, 2021

⌛ Testing commit fa75f63 with merge 4bd77a1...

@bors
Copy link
Contributor

bors commented Jan 3, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: ebroto
Pushing 4bd77a1 to beta...

@bors bors merged commit 4bd77a1 into rust-lang:beta Jan 3, 2021
@flip1995 flip1995 deleted the beta branch January 4, 2021 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants