Skip to content

Commit 28826b1

Browse files
committed
Remove some dead code and remove an unneeded comment.
1 parent 9644136 commit 28826b1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8231,14 +8231,11 @@ ERROR(attr_abi_incompatible_with_silgen_name,none,
82318231
//===----------------------------------------------------------------------===//
82328232
// MARK: @execution Attribute
82338233
//===----------------------------------------------------------------------===//
8234+
82348235
ERROR(attr_execution_concurrent_only_on_async,none,
82358236
"cannot use '@execution(concurrent)' on non-async %kind0",
82368237
(ValueDecl *))
82378238

8238-
ERROR(attr_execution_concurrent_incompatible_with_global_actor,none,
8239-
"cannot use '@execution(concurrent)' on %kind0 isolated to global actor %1",
8240-
(ValueDecl *, Type))
8241-
82428239
ERROR(attr_execution_concurrent_incompatible_isolated_parameter,none,
82438240
"cannot use '@execution(concurrent)' on %kind0 because it has "
82448241
"an isolated parameter: %1",

lib/Sema/TypeCheckAttr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8138,8 +8138,6 @@ class ClosureAttributeChecker
81388138
}
81398139
}
81408140

8141-
// Check if we have nonisolated or
8142-
81438141
return; // it's OK
81448142
}
81458143

0 commit comments

Comments
 (0)