Skip to content

Extend async fn test suite to account for ref mut? patterns #60509

Closed
@Centril

Description

@Centril

In #60501 the handling of mut patterns in arguments is fixed (#60498).

However, the test suite should also be extended to account for:

type A = Vec<u32>;

async fn foo(ref mut vec: A) { ... }

and:

async fn foo(ref vec: A) { ... }

as well as nestings of those:

async fn foo((ref mut c, ref d): (A, A)) { ... }

async fn foo((a, mut b): (A, A)) { ... }

Please be creative in testing for combinatorial interactions when closing this issue :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitA-testsuiteArea: The testsuite used to check the correctness of rustcAsyncAwait-PolishAsync-await issues that are part of the "polish" areaE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-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