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 {
39163916
39173917 Type visitCurrentContextIsolationExpr (CurrentContextIsolationExpr *E) {
39183918 auto actorProto = CS.getASTContext ().getProtocol (
3919- KnownProtocolKind::AnyActor );
3919+ KnownProtocolKind::Actor );
39203920 return OptionalType::get (actorProto->getDeclaredExistentialType ());
39213921 }
39223922
Original file line number Diff line number Diff line change @@ -73,8 +73,11 @@ public func _defaultActorDestroy(_ actor: AnyObject)
7373@usableFromInline
7474internal func _enqueueOnMain( _ job: UnownedJob )
7575
76+ #if $Macros
7677/// Produce a reference to the actor to which the enclosing code is
7778/// isolated, or `nil` if the code is nonisolated.
7879@available( SwiftStdlib 5 . 1 , * )
7980@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