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

Visit struct fields recursively in uninit fallback check #13367

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

y21
Copy link
Member

@y21 y21 commented Sep 7, 2024

This makes the fallback a bit more consistent with the other checks and rustc.

Fixes #13364. When using a generic type as the Vec element type like the issue title says, rustc's uninit check fails and our fallback is used, which didn't look at struct fields when it could.

changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Sep 7, 2024

r? @Manishearth

rustbot has assigned @Manishearth.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 7, 2024
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 9, 2024

📌 Commit ae5326b has been approved by Manishearth

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 9, 2024

⌛ Testing commit ae5326b with merge 938f8ba...

@bors
Copy link
Collaborator

bors commented Sep 9, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Manishearth
Pushing 938f8ba to master...

@bors bors merged commit 938f8ba into rust-lang:master Sep 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clippy::uninit_vec (probable) false positive for Vec<UnsafeCell<MaybeUninit<T>>>
4 participants