File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3916,7 +3916,7 @@ namespace {
3916
3916
3917
3917
Type visitCurrentContextIsolationExpr (CurrentContextIsolationExpr *E) {
3918
3918
auto actorProto = CS.getASTContext ().getProtocol (
3919
- KnownProtocolKind::AnyActor );
3919
+ KnownProtocolKind::Actor );
3920
3920
return OptionalType::get (actorProto->getDeclaredExistentialType ());
3921
3921
}
3922
3922
Original file line number Diff line number Diff line change @@ -73,8 +73,11 @@ public func _defaultActorDestroy(_ actor: AnyObject)
73
73
@usableFromInline
74
74
internal func _enqueueOnMain( _ job: UnownedJob )
75
75
76
+ #if $Macros
76
77
/// Produce a reference to the actor to which the enclosing code is
77
78
/// isolated, or `nil` if the code is nonisolated.
78
79
@available( SwiftStdlib 5 . 1 , * )
79
80
@freestanding ( expression)
80
- public macro isolation( ) -> ( any AnyActor ) ? = Builtin. IsolationMacro
81
+ public macro isolation( ) -> ( any Actor ) ? = Builtin. IsolationMacro
82
+ #endif
83
+
You can’t perform that action at this time.
0 commit comments