mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST/ASTGen/Sema/Serialization] Remove @execution attribute
Complete the transition from `@execution` to `@concurrent` and `nonisolated(nonsending)`
This commit is contained in:
@@ -1414,10 +1414,8 @@ FunctionType::ExtInfo ClosureEffectsRequest::evaluate(
|
||||
bool async = expr->getAsyncLoc().isValid();
|
||||
bool sendable = expr->getAttrs().hasAttribute<SendableAttr>();
|
||||
|
||||
// `@execution(...)` and `@concurrent` attributes are only
|
||||
// valid on asynchronous function types.
|
||||
if (expr->getAttrs().hasAttribute<ExecutionAttr>() ||
|
||||
expr->getAttrs().hasAttribute<ConcurrentAttr>()) {
|
||||
// `@concurrent` attribute is only valid on asynchronous function types.
|
||||
if (expr->getAttrs().hasAttribute<ConcurrentAttr>()) {
|
||||
async = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user