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

Let try_collect take advantage of try_fold overrides #94115

Merged
merged 1 commit into from
Mar 19, 2022

Commits on Mar 10, 2022

  1. Let try_collect take advantage of try_fold overrides

    Without this change it's going through `&mut impl Iterator`, which handles `?Sized` and thus currently can't forward generics.
    
    Here's the test added, to see that it fails before this PR (once a new enough nightly is out): https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=462f2896f2fed2c238ee63ca1a7e7c56
    scottmcm committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    7ef74bc View commit details
    Browse the repository at this point in the history