Skip to content

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

Open

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

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Feb 6, 2024
  2. added
    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.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Feb 6, 2024
  3. added a commit that references this issue on Dec 13, 2024
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