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

[filter_map_bool_then]: include multiple derefs from adjustments #11515

Merged
merged 2 commits into from Sep 17, 2023

Conversation

y21
Copy link
Member

@y21 y21 commented Sep 16, 2023

In #11506 this lint was improved to suggest one deref if the bool is behind references (fixed the FP #11503), however it might need multiple dereferences if the bool is behind multiple layers of references or custom derefs. E.g. &&&bool needs ***b.

changelog: [filter_map_bool_then]: suggest as many dereferences as there are needed to get to the bool

@rustbot
Copy link
Collaborator

rustbot commented Sep 16, 2023

r? @Jarcho

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 16, 2023
@y21 y21 changed the title [filter_map_bool_then]: peel as many refs as needed [filter_map_bool_then]: include multiple derefs from adjustments Sep 16, 2023
@Jarcho
Copy link
Contributor

Jarcho commented Sep 17, 2023

Thank you. @bors r+

@bors
Copy link
Collaborator

bors commented Sep 17, 2023

📌 Commit 2ec6f3b has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 17, 2023

⌛ Testing commit 2ec6f3b with merge 7b5e019...

@bors
Copy link
Collaborator

bors commented Sep 17, 2023

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

@bors bors merged commit 7b5e019 into rust-lang:master Sep 17, 2023
5 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.

None yet

4 participants