Skip to content

Prevent await from creating a generator #51719

Closed
@cramertj

Description

@cramertj

The await macro implemented in #51580 can be abused to create a generator (e.g. || await!()). This shouldn't be allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AsyncAwait-PolishAsync-await issues that are part of the "polish" areaT-compilerRelevant to the compiler 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