Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
rustc compiler crashed when using async in loop #67893
When learning async/await feature I was struggling with running multiple tasks simultaneously.
Github Action crash output:
I expected to see this happen: Error message if something goes wrong.
Instead, this happened: Compiler crashed
Crash happens on macOS rustc 1.40 / Linux rustc 1.40 / Linux rustc 1.39 ( github actions )
Provided example is pretty small, but it is dependent on tokio and actix-web.
I do not know how to create such an example in playground, I do know know how I can replace async tokio::sync::mpsc with standard library which does not have async alternative as far as i know.
I have tried to simplify code but then crash disappear. Just putting everything into one file