[AST/ASTGen/Sema/Serialization] Remove @execution attribute

Complete the transition from `@execution` to `@concurrent` and `nonisolated(nonsending)`
This commit is contained in:
Pavel Yaskevich
2025-04-08 18:20:23 -07:00
parent fde841704c
commit 06f880e65c
47 changed files with 242 additions and 686 deletions

View File

@@ -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;
}