Mark tokio futures as UnwindSafe #4414
Labels
A-tokio
Area: The main tokio crate
C-bug
Category: This is a bug.
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-help-wanted
Call for participation: Help is requested to fix this issue.
M-fs
Module: tokio/fs
Version
tokio = 1.15.0
tokio-macros = 1.7.0
tokio-util = 1.15.0
Platform
Linux 5.3.18-59.37-default 1 SMP x86_64 GNU/Linux
Description
Some tokio futures are not marked as unwind safe, making catching panics unwieldy and uncertain. I spoke with Alice who suggested I make a bug report about this.
I tried this code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=77e8b4432bd28f50080cbae9eb26b8ae
And the compiler reports that various futures produced (particularly by the tokio::fs module) are not UnwindSafe.
The text was updated successfully, but these errors were encountered: