Skip to content

Commit 178604e

Browse files
committed
[Features] Remove the experimental ExtensionMacros feature identifier.
1 parent 769fc5d commit 178604e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

include/swift/Basic/Features.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ EXPERIMENTAL_FEATURE(CodeItemMacros, false)
123123
EXPERIMENTAL_FEATURE(TupleConformances, false)
124124
EXPERIMENTAL_FEATURE(InitAccessors, false)
125125

126-
EXPERIMENTAL_FEATURE(ExtensionMacros, true)
127126
SUPPRESSIBLE_LANGUAGE_FEATURE(ExtensionMacroAttr, 0, "@attached(extension)", true)
128127

129128
// Whether to enable @_used and @_section attributes

lib/AST/Decl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10586,11 +10586,10 @@ bool swift::isMacroSupported(MacroRole role, ASTContext &ctx) {
1058610586
case MacroRole::Member:
1058710587
case MacroRole::Peer:
1058810588
case MacroRole::Conformance:
10589+
case MacroRole::Extension:
1058910590
return true;
1059010591
case MacroRole::CodeItem:
1059110592
return ctx.LangOpts.hasFeature(Feature::CodeItemMacros);
10592-
case MacroRole::Extension:
10593-
return ctx.LangOpts.hasFeature(Feature::ExtensionMacros);
1059410593
}
1059510594
}
1059610595

0 commit comments

Comments
 (0)