Skip to content

Commit 169b74c

Browse files
committed
Mark dispatch_main as non-unwinding
1 parent 21274c3 commit 169b74c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/dispatch2/src/ffi.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@ enum_with_val! {
230230

231231
#[cfg_attr(target_vendor = "apple", link(name = "System", kind = "dylib"))]
232232
#[cfg_attr(not(target_vendor = "apple"), link(name = "dispatch", kind = "dylib"))]
233-
extern "C-unwind" {
233+
extern "C" {}
234+
235+
// `dispatch_main` is marked DISPATCH_NOTHROW.
236+
extern "C" {
234237
/// Executes blocks submitted to the main queue.
235238
pub fn dispatch_main() -> !;
236239
}

0 commit comments

Comments
 (0)