Skip to content

rust-analyzer crashes when trying to use tokio::spawn async #6145

Closed
@misttyat

Description

@misttyat

type: Bug

rust-analyzer version: nightly cb78c40, stable branch has same error.

Step-By-Step guide
https://asciinema.org/a/gFUmLyfowCRD96ZrFEwsC3GYz

Reproduce code

#[tokio::main]
pub async fn main() {
  println!("123");
  tokio::spawn(async {
//here ls server crashes 
});
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions