Skip to content

Conversation

@brson
Copy link
Contributor

@brson brson commented Jan 13, 2014

No description provided.

bors added a commit that referenced this pull request Jan 13, 2014
@bors bors closed this Jan 13, 2014
@bors bors merged commit 58097c1 into rust-lang:master Jan 13, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 25, 2023
fix filter_map_bool_then with a bool reference

changelog: [`filter_map_bool_then`]: Fix the incorrect autofix when the `bool` in question is a reference.

fix rust-lang#11503
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 25, 2023
…=Jarcho

[`filter_map_bool_then`]: include multiple derefs from adjustments

In rust-lang#11506 this lint was improved to suggest one deref if the bool is behind references (fixed the FP rust-lang#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants