Skip to content

Conversation

kraktus
Copy link
Contributor

@kraktus kraktus commented Sep 17, 2022

fix #9383

changelog: fix [needless_borrow] false positive on unions
changelog: fix [explicit_auto_deref] false positive on unions

Left a couple debug derived impls on purpose I needed to debug as I don't think it's noise

@rust-highfive
Copy link

r? @flip1995

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 17, 2022
@Jarcho
Copy link
Contributor

Jarcho commented Sep 26, 2022

It would be slightly better to add Position::UnionFieldAccess as a separate variant.

@kraktus
Copy link
Contributor Author

kraktus commented Sep 26, 2022

Can fix in a few days

@kraktus
Copy link
Contributor Author

kraktus commented Sep 27, 2022

Thank you for the tip, much cleaner implementation

@Jarcho
Copy link
Contributor

Jarcho commented Sep 28, 2022

Thank you. @bors r+

@bors
Copy link
Contributor

bors commented Sep 28, 2022

📌 Commit 14ba4fb has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 28, 2022

⌛ Testing commit 14ba4fb with merge 8845f82...

@bors
Copy link
Contributor

bors commented Sep 28, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 8845f82 to master...

@bors bors merged commit 8845f82 into rust-lang:master Sep 28, 2022
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.

needless_borrow and explicit_auto_deref false positive with unions
5 participants