Skip to content

Commit a72cf73

Browse files
committed
remove unused declaration attribute IsolatedAttr
1 parent fcda8bc commit a72cf73

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

include/swift/AST/Attr.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,6 @@ SIMPLE_DECL_ATTR(rethrows, Rethrows,
492492
CONTEXTUAL_SIMPLE_DECL_ATTR(indirect, Indirect,
493493
DeclModifier | OnEnum | OnEnumElement | ABIBreakingToAdd | ABIBreakingToRemove | APIStableToAdd | APIStableToRemove,
494494
60)
495-
CONTEXTUAL_SIMPLE_DECL_ATTR(isolated, Isolated,
496-
DeclModifier | OnParam | ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
497-
103)
498495
CONTEXTUAL_SIMPLE_DECL_ATTR(async, Async,
499496
DeclModifier | OnVar | OnFunc | ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
500497
106)

lib/Sema/TypeCheckAttr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ class AttributeChecker : public AttributeVisitor<AttributeChecker> {
160160
IGNORED_ATTR(AtReasync)
161161
IGNORED_ATTR(ImplicitSelfCapture)
162162
IGNORED_ATTR(InheritActorContext)
163-
IGNORED_ATTR(Isolated)
164163
IGNORED_ATTR(Preconcurrency)
165164
IGNORED_ATTR(BackDeployed)
166165
IGNORED_ATTR(Documentation)

lib/Sema/TypeCheckDeclOverride.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,6 @@ namespace {
16121612
UNINTERESTING_ATTR(Nonisolated)
16131613
UNINTERESTING_ATTR(ImplicitSelfCapture)
16141614
UNINTERESTING_ATTR(InheritActorContext)
1615-
UNINTERESTING_ATTR(Isolated)
16161615
UNINTERESTING_ATTR(NoImplicitCopy)
16171616
UNINTERESTING_ATTR(UnavailableFromAsync)
16181617

lib/Serialization/ModuleFormat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
5858
/// describe what change you made. The content of this comment isn't important;
5959
/// it just ensures a conflict if two people change the module format.
6060
/// Don't worry about adhering to the 80-column limit for this line.
61-
const uint16_t SWIFTMODULE_VERSION_MINOR = 843; // add OSLog string encoding
61+
const uint16_t SWIFTMODULE_VERSION_MINOR = 844; // remove IsolatedAttr
6262

6363
/// A standard hash seed used for all string hashes in a serialized module.
6464
///

test/Parse/macro_decl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func test() {
4444
dynamic #someFunc
4545
4646
@CustomAttr
47-
isolated #someFunc
47+
#someFunc
4848
}
4949
5050
public # someFunc // expected-error {{extraneous whitespace between '#' and macro name is not permitted}} {{9-10=}}

0 commit comments

Comments
 (0)