Uh oh!
There was an error while loading. Please reload this page.
array::try_map - #79713
Conversation
rust-highfive
commented
Dec 4, 2020
(rust-highfive has picked a reviewer for you, use r? to override) |
withoutboats
commented
Dec 4, 2020
Thanks for the PR. I haven't been involved in the decisions to add any of the relevant methods for evaluating this one, so I want to consult with the rest of the libs teams on this. Specifically, I think we need to develop more policy around these questions:
@rust-lang/libs |
scottmcm
commented
Dec 11, 2020
A few off-the-cuff musings,
|
bors
commented
Dec 22, 2020
☔ The latest upstream changes (presumably #79451) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
Co-authored-by: lcnr <bastian_kauschke@hotmail.de>
rust-log-analyzer
commented
Dec 30, 2020
The job Click to see the possible cause of the failure (guessed by this bot) |
bors
commented
Jan 1, 2021
☔ The latest upstream changes (presumably #80566) made this pull request unmergeable. Please resolve the merge conflicts. |
JohnCSimon
commented
Jan 19, 2021
Ping from triage - @ethanboxx @rustbot label: -S-waiting-on-review +S-waiting-on-author |
JohnCSimon
commented
Feb 14, 2021
Triage: |
Make `array::{try_from_fn, try_map}` and `Iterator::try_find` generic over `Try`
Fixesrust-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
TI: #79711
pub fn try_map<F, R, E, U>(self, mut f: F) -> Result<[U; N], E> where F: FnMut(T) -> R, R: Try<Ok = U, Error = E> { ... }Thanks to @lcnr for helping me on this PR.
Much of the code was copied from
array::map.