mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #75093 from DougGregor/unsafe-inherit-executor-vs-pound-isolation
Ensure that a `@_unsafeInheritExecutor` function does not depend on `#isolation`
This commit is contained in:
@@ -3997,6 +3997,12 @@ ERROR(reasync_without_async_parameter,none,
|
||||
|
||||
ERROR(inherits_executor_without_async,none,
|
||||
"non-async functions cannot inherit an executor", ())
|
||||
ERROR(isolation_in_inherits_executor,none,
|
||||
"#isolation%select{| (introduced by a default argument)}0 cannot be used "
|
||||
"within an '@_unsafeInheritExecutor' function", (bool))
|
||||
ERROR(unsafe_inherits_executor_deprecated,none,
|
||||
"@_unsafeInheritExecutor attribute is deprecated; consider an "
|
||||
"'isolated' parameter defaulted to '#isolation' instead", ())
|
||||
|
||||
ERROR(lifetime_invalid_global_scope,none, "%0 is only valid on methods",
|
||||
(DeclAttribute))
|
||||
|
||||
Reference in New Issue
Block a user