Skip to content

Spurious "unused lifetime parameter" warning with async function #64493

Closed

Description

@varkor
#![warn(unused_lifetimes)]

async fn async_fn(&ref mut s: &[i32]) {} //~ WARN lifetime parameter `'_` never used

Activity

  1. added
    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    on Sep 15, 2019
  2. gilescope commented on Sep 17, 2019

    @gilescope
    Contributor

    @rustbot claim

  3. varkor commented on Sep 19, 2019

    @varkor
    ContributorAuthor

    Duplicate of #61115.

  4. added a commit that references this issue on Oct 15, 2019
    c1f51b6
  5. added a commit that references this issue on Oct 15, 2019
    fcef4b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-async-awaitArea: Async & AwaitA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.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