Skip to content

Investigate getting rid of the AsyncFn* family of traits in favor of LendingFn* #120694

Description

@compiler-errors

This will allow us to avoid annoying trait duplication if we want to add gen || and async gen || closures.

We need to lower impl async Fn() bounds to LendingFn bounds using the associated_type_bounds feature. This doesn't work currently until:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

A-async-closures`async || {}`C-cleanupCategory: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-typesRelevant to the types team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions