Skip to content

Commit 8b098ab

Browse files
committed
[Tests] Remove the flag AccessLevelOnImport from all tests but one
1 parent 7b1bc00 commit 8b098ab

18 files changed

+51
-107
lines changed

test/ModuleInterface/access-level-import-swiftinterfaces.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
// RUN: -package-name TestPackage \
2323
// RUN: -enable-library-evolution -swift-version 5 \
2424
// RUN: -emit-module-interface-path %t/Client.swiftinterface \
25-
// RUN: -emit-private-module-interface-path %t/Client.private.swiftinterface \
26-
// RUN: -enable-experimental-feature AccessLevelOnImport
25+
// RUN: -emit-private-module-interface-path %t/Client.private.swiftinterface
2726

2827
// RUN: %target-swift-typecheck-module-from-interface(%t/Client.swiftinterface) -I %t
2928
// RUN: %target-swift-typecheck-module-from-interface(%t/Client.private.swiftinterface) -I %t \
@@ -37,8 +36,7 @@
3736
// RUN: -package-name TestPackage \
3837
// RUN: -enable-library-evolution -swift-version 5 \
3938
// RUN: -emit-module-interface-path %t/MultiFiles.swiftinterface \
40-
// RUN: -emit-private-module-interface-path %t/MultiFiles.private.swiftinterface \
41-
// RUN: -enable-experimental-feature AccessLevelOnImport
39+
// RUN: -emit-private-module-interface-path %t/MultiFiles.private.swiftinterface
4240

4341
// RUN: %target-swift-typecheck-module-from-interface(%t/MultiFiles.swiftinterface) -I %t
4442
// RUN: %target-swift-typecheck-module-from-interface(%t/MultiFiles.private.swiftinterface) -I %t \

test/ScanDependencies/required_deps_of_testable_imports.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@testable import Foo
99

1010
// Step 1: build swift interface and swift module side by side, make them testable
11-
// RUN: %target-swift-frontend -emit-module %t/Foo.swift -emit-module-path %t/Foo.swiftmodule/%target-swiftmodule-name -module-name Foo -emit-module-interface-path %t/Foo.swiftmodule/%target-swiftinterface-name -I %S/Inputs/CHeaders -I %S/Inputs/Swift -enable-testing -enable-experimental-feature AccessLevelOnImport
11+
// RUN: %target-swift-frontend -emit-module %t/Foo.swift -emit-module-path %t/Foo.swiftmodule/%target-swiftmodule-name -module-name Foo -emit-module-interface-path %t/Foo.swiftmodule/%target-swiftinterface-name -I %S/Inputs/CHeaders -I %S/Inputs/Swift -enable-testing
1212

1313
// Step 2: scan dependencies
1414
// RUN: %target-swift-frontend -scan-dependencies %s -o %t/deps.json -I %t -sdk %t -prebuilt-module-cache-path %t/clang-module-cache -I %S/Inputs/CHeaders -I %S/Inputs/Swift

test/Sema/access-level-import-conformances.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
// RUN: %target-swift-frontend -emit-module %t/ConformanceDefinition.swift -o %t -I %t
77

88
/// Check diagnostics.
9-
// RUN: %target-swift-frontend -typecheck -verify %t/Client.swift -I %t \
10-
// RUN: -enable-experimental-feature AccessLevelOnImport
9+
// RUN: %target-swift-frontend -typecheck -verify %t/Client.swift -I %t
1110

1211
//--- ConformanceBaseTypes.swift
1312
public protocol Proto {}

test/Sema/access-level-import-diag-priority.swift

+3-6
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@
1414

1515
/// Check diagnostics.
1616
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
17-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
18-
// RUN: -package-name pkg
17+
// RUN: -package-name pkg -verify
1918
// RUN: %target-swift-frontend -typecheck %t/PackageTypeImportedAsPackageClient.swift -I %t \
20-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
21-
// RUN: -package-name pkg
19+
// RUN: -package-name pkg -verify
2220
// RUN: %target-swift-frontend -typecheck %t/LocalVsImportClient.swift -I %t \
23-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
24-
// RUN: -package-name pkg
21+
// RUN: -package-name pkg -verify
2522

2623
//--- PublicLib.swift
2724
public struct PublicImportType {}

test/Sema/access-level-import-exportability.swift

+4-8
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,17 @@
1515

1616
/// Check diagnostics.
1717
// RUN: %target-swift-frontend -typecheck %t/MinimalClient.swift -I %t \
18-
// RUN: -package-name TestPackage -swift-version 5 \
19-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify
18+
// RUN: -package-name TestPackage -swift-version 5 -verify
2019
// RUN: %target-swift-frontend -typecheck %t/CompletenessClient.swift -I %t \
21-
// RUN: -package-name TestPackage -swift-version 5 \
22-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify
20+
// RUN: -package-name TestPackage -swift-version 5 -verify
2321

2422
/// Check diagnostics with library-evolution.
2523
// RUN: %target-swift-frontend -typecheck %t/MinimalClient.swift -I %t \
2624
// RUN: -package-name TestPackage -swift-version 5 \
27-
// RUN: -enable-library-evolution \
28-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify
25+
// RUN: -enable-library-evolution -verify
2926
// RUN: %target-swift-frontend -typecheck %t/CompletenessClient.swift -I %t \
3027
// RUN: -package-name TestPackage -swift-version 5 \
31-
// RUN: -enable-library-evolution \
32-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify
28+
// RUN: -enable-library-evolution -verify
3329

3430
//--- PublicLib.swift
3531
public protocol PublicImportProto {

test/Sema/access-level-import-inconsistencies.swift

+5-9
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
public struct LibType {}
2222

2323
// RUN: %target-swift-frontend -typecheck %t/OneFile_AllExplicit.swift -I %t \
24-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
25-
// RUN: -package-name package
24+
// RUN: -package-name package -verify
2625
//--- OneFile_AllExplicit.swift
2726
public import Lib // expected-warning {{public import of 'Lib' was not used in public declarations or inlinable code}}
2827
package import Lib // expected-warning {{package import of 'Lib' was not used in package declarations}}
@@ -31,8 +30,7 @@ fileprivate import Lib
3130
private import Lib
3231

3332
// RUN: %target-swift-frontend -typecheck %t/ManyFiles_AllExplicit_File?.swift -I %t \
34-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
35-
// RUN: -package-name package
33+
// RUN: -package-name package -verify
3634
//--- ManyFiles_AllExplicit_FileA.swift
3735
public import Lib // expected-warning {{public import of 'Lib' was not used in public declarations or inlinable code}}
3836
//--- ManyFiles_AllExplicit_FileB.swift
@@ -45,23 +43,21 @@ fileprivate import Lib
4543
private import Lib
4644

4745
// RUN: %target-swift-frontend -typecheck %t/ManyFiles_ImplicitVsInternal_FileB.swift -I %t \
48-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
49-
// RUN: -primary-file %t/ManyFiles_ImplicitVsInternal_FileA.swift
46+
// RUN: -primary-file %t/ManyFiles_ImplicitVsInternal_FileA.swift -verify
5047
//--- ManyFiles_ImplicitVsInternal_FileA.swift
5148
import Lib // expected-error {{ambiguous implicit access level for import of 'Lib'; it is imported as 'internal' elsewhere}}
5249
//--- ManyFiles_ImplicitVsInternal_FileB.swift
5350
internal import Lib // expected-note {{imported 'internal' here}}
5451

5552
// RUN: %target-swift-frontend -typecheck %t/ManyFiles_ImplicitVsPackage_FileB.swift -I %t \
56-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
57-
// RUN: -primary-file %t/ManyFiles_ImplicitVsPackage_FileA.swift
53+
// RUN: -primary-file %t/ManyFiles_ImplicitVsPackage_FileA.swift -verify
5854
//--- ManyFiles_ImplicitVsPackage_FileA.swift
5955
import Lib // expected-error {{ambiguous implicit access level for import of 'Lib'; it is imported as 'package' elsewhere}}
6056
//--- ManyFiles_ImplicitVsPackage_FileB.swift
6157
package import Lib // expected-note {{imported 'package' here}} @:1
6258

6359
// RUN: %target-swift-frontend -typecheck %t/ManyFiles_AmbiguitySwift6_File?.swift -I %t \
64-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify -swift-version 6
60+
// RUN: -verify -swift-version 6
6561
// RUN: %target-swift-frontend -typecheck %t/ManyFiles_AmbiguitySwift6_File?.swift -I %t \
6662
// RUN: -enable-upcoming-feature InternalImportsByDefault -verify
6763
//--- ManyFiles_AmbiguitySwift6_FileA.swift

test/Sema/access-level-import-inlinable.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
/// Check diagnostics.
2020
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
21-
// RUN: -enable-library-evolution -swift-version 5 \
22-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
21+
// RUN: -enable-library-evolution -swift-version 5 -verify \
2322
// RUN: -package-name package
2423

2524
//--- PublicLib.swift

test/Sema/access-level-import-parsing.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
/// Check that all access levels are accepted, except for 'open'.
1313
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
14-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
15-
// RUN: -package-name package
14+
// RUN: -package-name package -verify
1615

1716
//--- PublicLib.swift
1817
//--- PackageLib.swift

test/Sema/access-level-import-typealias.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
// RUN: %target-swift-typecheck-module-from-interface(%t/Aliases.swiftinterface) -I %t
99

1010
// RUN: %target-swift-frontend -typecheck -verify %t/UsesAliasesNoImport.swift -I %t \
11-
// RUN: -swift-version 5 -enable-library-evolution \
12-
// RUN: -enable-experimental-feature AccessLevelOnImport
11+
// RUN: -swift-version 5 -enable-library-evolution
1312
// RUN: %target-swift-frontend -typecheck -verify %t/UsesAliasesNoImport.swift -I %t \
1413
// RUN: -swift-version 5 -enable-library-evolution \
1514
// RUN: -enable-upcoming-feature InternalImportsByDefault

test/Sema/conflicting-import-restrictions.swift

+5-10
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,15 @@
3838

3939
/// Access levels on imports
4040
// RUN: %target-swift-frontend -typecheck %t/Public_Exported.swift -I %t -verify \
41-
// RUN: -experimental-spi-only-imports -verify \
42-
// RUN: -enable-experimental-feature AccessLevelOnImport
41+
// RUN: -experimental-spi-only-imports -verify
4342
// RUN: %target-swift-frontend -typecheck %t/Package_Exported.swift -I %t -verify \
44-
// RUN: -experimental-spi-only-imports -verify \
45-
// RUN: -enable-experimental-feature AccessLevelOnImport
43+
// RUN: -experimental-spi-only-imports -verify
4644
// RUN: %target-swift-frontend -typecheck %t/Internal_Exported.swift -I %t -verify \
47-
// RUN: -experimental-spi-only-imports -verify \
48-
// RUN: -enable-experimental-feature AccessLevelOnImport
45+
// RUN: -experimental-spi-only-imports -verify
4946
// RUN: %target-swift-frontend -typecheck %t/Fileprivate_Exported.swift -I %t -verify \
50-
// RUN: -experimental-spi-only-imports -verify \
51-
// RUN: -enable-experimental-feature AccessLevelOnImport
47+
// RUN: -experimental-spi-only-imports -verify
5248
// RUN: %target-swift-frontend -typecheck %t/Private_Exported.swift -I %t -verify \
53-
// RUN: -experimental-spi-only-imports -verify \
54-
// RUN: -enable-experimental-feature AccessLevelOnImport
49+
// RUN: -experimental-spi-only-imports -verify
5550

5651
//--- Public_Exported.swift
5752
@_exported public import Lib // expected-warning {{public import of 'Lib' was not used in public declarations or inlinable code}}

test/Sema/implementation-only-import-suggestion.swift

-4
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ import LocalClang
102102
@_exported import MainLib
103103

104104
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk %t/InternalImports.swift \
105-
// RUN: -enable-experimental-feature AccessLevelOnImport \
106105
// RUN: -module-name MainLib -module-cache-path %t \
107106
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
108107
// RUN: -library-level api -verify
@@ -116,7 +115,6 @@ internal import FullyPrivateClang
116115
internal import LocalClang
117116

118117
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk %t/FileprivateImports.swift \
119-
// RUN: -enable-experimental-feature AccessLevelOnImport \
120118
// RUN: -module-name MainLib -module-cache-path %t \
121119
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
122120
// RUN: -library-level api -verify
@@ -130,7 +128,6 @@ fileprivate import FullyPrivateClang
130128
fileprivate import LocalClang
131129

132130
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk %t/PrivateImports.swift \
133-
// RUN: -enable-experimental-feature AccessLevelOnImport \
134131
// RUN: -module-name MainLib -module-cache-path %t \
135132
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
136133
// RUN: -library-level api -verify
@@ -144,7 +141,6 @@ private import FullyPrivateClang
144141
private import LocalClang
145142

146143
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk %t/ExplicitlyPublicImports.swift \
147-
// RUN: -enable-experimental-feature AccessLevelOnImport \
148144
// RUN: -module-name MainLib -module-cache-path %t \
149145
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
150146
// RUN: -library-level api -verify

test/Sema/package-only-references.swift

+4-9
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,22 @@
55

66
/// Build the libraries.
77
// RUN: %target-swift-frontend -emit-module %t/PackageImportedLib.swift -o %t \
8-
// RUN: -swift-version 5 -enable-library-evolution \
9-
// RUN: -enable-experimental-feature AccessLevelOnImport
8+
// RUN: -swift-version 5 -enable-library-evolution
109
// RUN: %target-swift-frontend -emit-module %t/PackageLib.swift -o %t \
1110
// RUN: -swift-version 5 -enable-library-evolution -I %t \
12-
// RUN: -enable-experimental-feature AccessLevelOnImport \
1311
// RUN: -package-name MyPackage
1412

1513
/// A client in the same package builds fine.
1614
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
17-
// RUN: -package-name MyPackage -I %t \
18-
// RUN: -enable-experimental-feature AccessLevelOnImport
15+
// RUN: -package-name MyPackage -I %t
1916

2017
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
2118
// RUN: -package-name MyPackage -I %t \
22-
// RUN: -enable-deserialization-safety \
23-
// RUN: -enable-experimental-feature AccessLevelOnImport
19+
// RUN: -enable-deserialization-safety
2420

2521
/// A client outside of the package raises errors.
2622
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
27-
// RUN: -package-name NotMyPackage -I %t \
28-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify
23+
// RUN: -package-name NotMyPackage -I %t -verify
2924

3025
//--- PackageImportedLib.swift
3126
public struct IndirectType {

test/Sema/superfluously-public-imports.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323

2424
/// Check diagnostics.
2525
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
26-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
27-
// RUN: -package-name pkg -Rmodule-api-import -swift-version 6
26+
// RUN: -package-name pkg -Rmodule-api-import -swift-version 6 -verify
2827
// RUN: %target-swift-frontend -typecheck %t/Client_Swift5.swift -I %t \
29-
// RUN: -enable-experimental-feature AccessLevelOnImport -verify \
30-
// RUN: -swift-version 5
28+
// RUN: -swift-version 5 -verify
3129

3230
//--- DepUsedFromInlinableCode.swift
3331
public struct TypeUsedFromInlinableCode {}

test/Serialization/access-level-import-dependencies.swift

+16-32
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,15 @@ private import HiddenDep
2626

2727
/// With resilience, non-public dependencies should be hidden.
2828
// RUN: %target-swift-frontend -emit-module %t/PublicDep.swift -o %t -I %t \
29-
// RUN: -enable-library-evolution \
30-
// RUN: -enable-experimental-feature AccessLevelOnImport
29+
// RUN: -enable-library-evolution
3130
// RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t -I %t \
32-
// RUN: -enable-library-evolution -package-name MyPackage \
33-
// RUN: -enable-experimental-feature AccessLevelOnImport
31+
// RUN: -enable-library-evolution -package-name MyPackage
3432
// RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t \
35-
// RUN: -enable-library-evolution \
36-
// RUN: -enable-experimental-feature AccessLevelOnImport
33+
// RUN: -enable-library-evolution
3734
// RUN: %target-swift-frontend -emit-module %t/FileprivateDep.swift -o %t -I %t \
38-
// RUN: -enable-library-evolution \
39-
// RUN: -enable-experimental-feature AccessLevelOnImport
35+
// RUN: -enable-library-evolution
4036
// RUN: %target-swift-frontend -emit-module %t/PrivateDep.swift -o %t -I %t \
41-
// RUN: -enable-library-evolution \
42-
// RUN: -enable-experimental-feature AccessLevelOnImport
37+
// RUN: -enable-library-evolution
4338

4439
// RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
4540
// RUN: -package-name MyOtherPackage \
@@ -59,17 +54,12 @@ import FileprivateDep
5954
import PrivateDep
6055

6156
/// Without resilience, all access-level dependencies are visible to clients.
62-
// RUN: %target-swift-frontend -emit-module %t/PublicDep.swift -o %t -I %t \
63-
// RUN: -enable-experimental-feature AccessLevelOnImport
57+
// RUN: %target-swift-frontend -emit-module %t/PublicDep.swift -o %t -I %t
6458
// RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t -I %t \
65-
// RUN: -package-name MyPackage \
66-
// RUN: -enable-experimental-feature AccessLevelOnImport
67-
// RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t \
68-
// RUN: -enable-experimental-feature AccessLevelOnImport
69-
// RUN: %target-swift-frontend -emit-module %t/FileprivateDep.swift -o %t -I %t \
70-
// RUN: -enable-experimental-feature AccessLevelOnImport
71-
// RUN: %target-swift-frontend -emit-module %t/PrivateDep.swift -o %t -I %t \
72-
// RUN: -enable-experimental-feature AccessLevelOnImport
59+
// RUN: -package-name MyPackage
60+
// RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t
61+
// RUN: %target-swift-frontend -emit-module %t/FileprivateDep.swift -o %t -I %t
62+
// RUN: %target-swift-frontend -emit-module %t/PrivateDep.swift -o %t -I %t
7363

7464
// RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
7565
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
@@ -79,20 +69,15 @@ import PrivateDep
7969
/// Even with resilience and testing enabled, all non-public dependencies are
8070
/// hidden if there are no testable imports.
8171
// RUN: %target-swift-frontend -emit-module %t/PublicDep.swift -o %t -I %t \
82-
// RUN: -enable-library-evolution -enable-testing \
83-
// RUN: -enable-experimental-feature AccessLevelOnImport
72+
// RUN: -enable-library-evolution -enable-testing
8473
// RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t -I %t \
85-
// RUN: -enable-library-evolution -enable-testing -package-name MyPackage \
86-
// RUN: -enable-experimental-feature AccessLevelOnImport
74+
// RUN: -enable-library-evolution -enable-testing -package-name MyPackage
8775
// RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t \
88-
// RUN: -enable-library-evolution -enable-testing \
89-
// RUN: -enable-experimental-feature AccessLevelOnImport
76+
// RUN: -enable-library-evolution -enable-testing
9077
// RUN: %target-swift-frontend -emit-module %t/FileprivateDep.swift -o %t -I %t \
91-
// RUN: -enable-library-evolution -enable-testing \
92-
// RUN: -enable-experimental-feature AccessLevelOnImport
78+
// RUN: -enable-library-evolution -enable-testing
9379
// RUN: %target-swift-frontend -emit-module %t/PrivateDep.swift -o %t -I %t \
94-
// RUN: -enable-library-evolution -enable-testing \
95-
// RUN: -enable-experimental-feature AccessLevelOnImport
80+
// RUN: -enable-library-evolution -enable-testing
9681

9782
// RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
9883
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-DEP %s
@@ -120,8 +105,7 @@ import PrivateDep
120105
/// Non-public imports from the reexported modules are not loaded, we could
121106
/// revisit this if desired.
122107
// RUN: %target-swift-frontend -emit-module %t/Exporter.swift -o %t -I %t \
123-
// RUN: -enable-library-evolution -enable-testing \
124-
// RUN: -enable-experimental-feature AccessLevelOnImport
108+
// RUN: -enable-library-evolution -enable-testing
125109
// RUN: %target-swift-frontend -typecheck %t/ExporterClient.swift -I %t \
126110
// RUN: -index-system-modules -index-ignore-stdlib -index-store-path %t/idx \
127111
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefixes=CHECK-EXPORTER,HIDDEN-DEP %s

test/Serialization/package-dependencies.swift

+2-7
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
// RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t
66
// RUN: %target-swift-frontend -emit-module %t/ResilientDep.swift -o %t \
77
// RUN: -package-name MyPackage -I %t \
8-
// RUN: -enable-library-evolution \
9-
// RUN: -enable-experimental-feature AccessLevelOnImport
8+
// RUN: -enable-library-evolution
109
// RUN: %target-swift-frontend -emit-module %t/NonResilientDep.swift -o %t \
11-
// RUN: -package-name MyPackage -I %t \
12-
// RUN: -enable-experimental-feature AccessLevelOnImport
10+
// RUN: -package-name MyPackage -I %t
1311

1412
//--- PackageDep.swift
1513

@@ -23,13 +21,11 @@ package import PackageDep
2321
/// is only visible to modules from the same package.
2422
// RUN: %target-swift-frontend -typecheck %t/ResilientClient.swift \
2523
// RUN: -package-name MyPackage -I %t \
26-
// RUN: -enable-experimental-feature AccessLevelOnImport \
2724
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-PACKAGE-DEP %s
2825
// VISIBLE-PACKAGE-DEP: loaded module 'PackageDep'
2926

3027
// RUN: %target-swift-frontend -typecheck %t/ResilientClient.swift \
3128
// RUN: -package-name NotMyPackage -I %t \
32-
// RUN: -enable-experimental-feature AccessLevelOnImport \
3329
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=HIDDEN-PACKAGE-DEP %s
3430
// HIDDEN-PACKAGE-DEP-NOT: loaded module 'PackageDep'
3531

@@ -40,7 +36,6 @@ import ResilientDep
4036
/// see the package dependency.
4137
// RUN: %target-swift-frontend -typecheck %t/NonResilientClient.swift \
4238
// RUN: -package-name NotMyPackage -I %t \
43-
// RUN: -enable-experimental-feature AccessLevelOnImport \
4439
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-PACKAGE-DEP %s
4540

4641
//--- NonResilientClient.swift

0 commit comments

Comments
 (0)