-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[beta] Clippy backport field_reassign_with_default fix #80680
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
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.
[beta] Backport of rust-lang#6375 - field_reassign_with_default fix With the pinned nightly we can test backports to our beta branch now 🎉 cc rust-lang#6515 changelog: beta 1.50: Backport of private fields fix in [`field_reassign_with_default`] lints
|
@bors r+ rollup=never |
📌 Commit 70fced0 has been approved by |
⌛ Testing commit 70fced0 with merge bba12f48abb6c4352bae61af61fa744d27f28aa3... |
💔 Test failed - checks-actions |
seems spurious? |
@bors retry |
⌛ Testing commit 70fced0 with merge 747421926aa9b172d5fa5c69319b6dc90b356454... |
💔 Test failed - checks-actions |
@bors retry Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest' |
☀️ Test successful - checks-actions |
cc @ebroto @Manishearth
We had multiple complaints about this lint landing in stable 1.49 with a FP hit quite often in real world code. We want to backport the fix for this, so it already gets into 1.50. A stable backport is not warranted by this IMO.
r? @Mark-Simulacrum