Skip to content

Commit 62ee448

Browse files
committed
Features: Intro CheckImplementationOnly
1 parent 2d89111 commit 62ee448

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@ EXPERIMENTAL_FEATURE(EmbeddedExistentials, false)
558558
/// Allow use of the 'anyAppleOS' availability domain.
559559
EXPERIMENTAL_FEATURE(AnyAppleOSAvailability, true)
560560

561+
/// Check @_implementationOnly imports in non-library-evolution mode.
562+
EXPERIMENTAL_FEATURE(CheckImplementationOnly, true)
563+
561564
#undef EXPERIMENTAL_FEATURE_EXCLUDED_FROM_MODULE_INTERFACE
562565
#undef EXPERIMENTAL_FEATURE
563566
#undef UPCOMING_FEATURE

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ UNINTERESTING_FEATURE(ExtractConstantsFromMembers)
144144
UNINTERESTING_FEATURE(GroupActorErrors)
145145
UNINTERESTING_FEATURE(SameElementRequirements)
146146
UNINTERESTING_FEATURE(SendingArgsAndResults)
147+
UNINTERESTING_FEATURE(CheckImplementationOnly)
147148

148149
static bool findUnderscoredLifetimeAttr(Decl *decl) {
149150
auto hasUnderscoredLifetimeAttr = [](Decl *decl) {

0 commit comments

Comments
 (0)