Skip to content

Commit 848edaa

Browse files
committed
Don't error on unused NS_SWIFT_ASYNC* attributes
ScreenCaptureKit contains such an attribute.
1 parent 9bde69c commit 848edaa

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

crates/header-translator/src/method.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,6 @@ impl Method {
585585
.unwrap_or(false)
586586
&& result_type == Ty::VOID_RESULT;
587587

588-
if modifiers.swift_async.is_some() && !potentially_async_completion_handler {
589-
error!(selector, "swift_async on a method without a suitable block");
590-
}
591-
592588
// Next, determine if the naming makes it an inferred
593589
let last_selector_piece = name_translation::last_selector_piece(&selector);
594590
let implicitly_inferred_async_completion_handler =

0 commit comments

Comments
 (0)