-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix path_to_res for enum inherent items #6567
Conversation
r? @ebroto (rust-highfive has picked a reviewer for you, use r? to override) |
r? @Manishearth (I'm leaving the team, so I'm reassigning my PRs to other active members) |
This is no longer immediately needed, but I think it's still a positive change that could be useful later. |
@bors r+ |
📌 Commit 8490862 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
`manual_filter_map` and `manual_find_map` changelog: Add `manual_filter_map` and replace `find_map` with `manual_find_map` Replaces #6453 Fixes #3188 Fixes #4193 ~Depends on #6567 (to fix an internal lint false positive)~ This replaces `filter_map` and `find_map` with `manual_filter_map` and `manual_find_map` respectively. However, `filter_map` is left in place since it is used for a variety of other cases. See discussion in #6453.
changelog: none
I tried to add
Option::is_some
to the paths but got a false positive from the invalid paths lint. Turns out thepath_to_res
function does not find inherent impls for enums. I fixed this and took the liberty to do some additional cleanup in the method.