Skip to content

async functions with unimplemented!() are marked as unreachable #64636

Closed
@tacomorphism

Description

@tacomorphism

can reproduce with

async fn example(){
 unimplemented!()
}

results in

warning: unreachable expression
 --> src/main.rs:1:19
  |
1 |   async fn example(){
  |  ___________________^
2 | |   unimplemented!()
3 | | }
  | |_^
  |
  = note: `#[warn(unreachable_code)]` on by default

using nightly-2019-09-18

Seems related to #61798

Metadata

Metadata

Assignees

No one assigned

    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