Skip to content

Use of .await in 2015 edition prints one error per use #90849

Open
@estebank

Description

@estebank

When using .await and async fn in 2015 editions, we emit an error for each instance of incorrect usage. The most common case of this happening is likely to be when not being aware of the edition distinction in a new project and/or copying complete code from elsewhere. We should group these errors and emit a single error to reduce output verbosity. We might want to group per mod or some other strategy, but even the naïve approach is likely to work out ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-edition-2015Area: The 2015 edition (the first edition)D-editionDiagnostics: An error or lint that should account for edition differences.D-verboseDiagnostics: Too much output caused by a single piece of incorrect code.P-lowLow priorityT-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