-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add a try_reduce
method to the Iterator trait
#87054
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @joshtriplett (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #89158) made this pull request unmergeable. Please resolve the merge conflicts. |
Triage: there's merge conflict now. Would you mind rebasing it? @kit-981 |
Thanks. I've updated the pull request. |
Make `array::{try_from_fn, try_map}` and `Iterator::try_find` generic over `Try` Fixes rust-lang#85115 This only updates unstable functions. `array::try_map` didn't actually exist before; this adds it under the still-open tracking issue rust-lang#79711 from the old PR rust-lang#79713. Tracking issue for the new trait: rust-lang#91285 This would also solve the return type question in for the proposed `Iterator::try_reduce` in rust-lang#87054
This comment has been minimized.
This comment has been minimized.
Thanks for the PR! Sorry it took 5 months 😬 @bors r+ |
📌 Commit aef59e4 has been approved by |
…askrgr Rollup of 3 pull requests Successful merges: - rust-lang#87054 (Add a `try_reduce` method to the Iterator trait) - rust-lang#89701 (Updated error message for accidental uses of derive attribute as a crate attribute) - rust-lang#90519 (Keep spans for generics in `#[derive(_)]` desugaring) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Tracking issue: #87053