1
Fork 0

Wrap Context.ext in AssertUnwindSafe

This commit is contained in:
Jubilee Young 2024-05-21 18:55:12 -07:00
parent 39e02f1bd1
commit 3a21fb5cec
4 changed files with 27 additions and 42 deletions

View file

@ -11,7 +11,6 @@ fn main() {
is_unwindsafe(async {
//~^ ERROR the type `&mut Context<'_>` may not be safely transferred across an unwind boundary
//~| ERROR the type `&mut (dyn Any + 'static)` may not be safely transferred across an unwind boundary
use std::ptr::null;
use std::task::{Context, RawWaker, RawWakerVTable, Waker};
let waker = unsafe {