Skip to content

[beta] Backport of #6375 - field_reassign_with_default fix - #6537

Merged
bors merged 3 commits into
rust-lang:betafrom
flip1995:beta
Jan 3, 2021
Merged

[beta] Backport of #6375 - field_reassign_with_default fix#6537
bors merged 3 commits into
rust-lang:betafrom
flip1995:beta

Conversation

@flip1995

@flip1995 flip1995 commented Jan 2, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown

r? @ebroto

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

@rust-highfive

Copy link
Copy Markdown

⚠️ 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

@ebroto ebroto left a comment

Copy link
Copy Markdown
Contributor

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

flip1995 commented Jan 3, 2021

Copy link
Copy Markdown
Member Author

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

ebroto commented Jan 3, 2021

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Jan 3, 2021

Copy link
Copy Markdown
Contributor

📌 Commit fa75f63 has been approved by ebroto

@bors

bors commented Jan 3, 2021

Copy link
Copy Markdown
Contributor

⌛ Testing commit fa75f63 with merge 4bd77a1...

@bors

bors commented Jan 3, 2021

Copy link
Copy Markdown
Contributor

☀️ 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