Skip to content

Commit d0513a7

Browse files
authored
Merge pull request #79665 from Azoy/value-generics-no-more-experiment
[AST] Make ValueGenerics feature always available
2 parents d75b7cd + 208c268 commit d0513a7

36 files changed

+42
-98
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8248,8 +8248,6 @@ ERROR(value_generic_unexpected,none,
82488248
"using value generic %0 here is not allowed", (Type))
82498249
ERROR(missing_value_generic_type,none,
82508250
"value generic %0 must have an explicit value type declared", (Identifier))
8251-
ERROR(value_generics_missing_feature,none,
8252-
"value generics require '-enable-experimental-feature ValueGenerics'", ())
82538251
ERROR(availability_value_generic_type_only_version_newer, none,
82548252
"values in generic types are only available in %0 %1 or newer",
82558253
(AvailabilityDomain, AvailabilityRange))

include/swift/Basic/Features.def

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ LANGUAGE_FEATURE(NonescapableTypes, /*IsAdoptable=*/false, 446,
251251
LANGUAGE_FEATURE(BuiltinEmplaceTypedThrows, /*IsAdoptable=*/false, 0,
252252
"Builtin.emplace typed throws")
253253
SUPPRESSIBLE_LANGUAGE_FEATURE(MemorySafetyAttributes, 458, "@unsafe attribute")
254+
LANGUAGE_FEATURE(ValueGenerics, 452, "Value generics feature (integer generics)")
254255

255256
// Swift 6
256257
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)
@@ -465,9 +466,6 @@ EXPERIMENTAL_FEATURE(ImportNonPublicCxxMembers, true)
465466
// Isolated deinit
466467
SUPPRESSIBLE_LANGUAGE_FEATURE(IsolatedDeinit, 371, "isolated deinit")
467468

468-
// Enable values in generic signatures, e.g. <let N: Int>
469-
EXPERIMENTAL_FEATURE(ValueGenerics, true)
470-
471469
// When a parameter has unspecified isolation, infer it as main actor isolated.
472470
EXPERIMENTAL_FEATURE(UnspecifiedMeansMainActorIsolated, false)
473471

lib/AST/RequirementMachine/RequirementMachineRequests.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,10 +825,6 @@ InferredGenericSignatureRequest::evaluate(
825825
"Parsed an empty generic parameter list?");
826826

827827
for (auto *gpDecl : *gpList) {
828-
if (gpDecl->isValue() &&
829-
!gpDecl->getASTContext().LangOpts.hasFeature(Feature::ValueGenerics))
830-
gpDecl->diagnose(diag::value_generics_missing_feature);
831-
832828
auto *gpType = gpDecl->getDeclaredInterfaceType()
833829
->castTo<GenericTypeParamType>();
834830
genericParams.push_back(gpType);

test/ASTGen/decls.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11

22
// RUN: %empty-directory(%t)
3-
// RUN: %target-swift-frontend-dump-parse -disable-availability-checking -enable-experimental-move-only -enable-experimental-concurrency -enable-experimental-feature ValueGenerics -enable-experimental-feature ParserASTGen \
3+
// RUN: %target-swift-frontend-dump-parse -disable-availability-checking -enable-experimental-move-only -enable-experimental-concurrency -enable-experimental-feature ParserASTGen \
44
// RUN: | %sanitize-address > %t/astgen.ast
5-
// RUN: %target-swift-frontend-dump-parse -disable-availability-checking -enable-experimental-move-only -enable-experimental-concurrency -enable-experimental-feature ValueGenerics \
5+
// RUN: %target-swift-frontend-dump-parse -disable-availability-checking -enable-experimental-move-only -enable-experimental-concurrency \
66
// RUN: | %sanitize-address > %t/cpp-parser.ast
77

88
// RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
99

10-
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-concurrency -enable-experimental-feature ValueGenerics -enable-experimental-feature ParserASTGen)
10+
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-concurrency -enable-experimental-feature ParserASTGen)
1111

1212
// REQUIRES: executable_test
1313
// REQUIRES: swift_swift_parser
1414
// REQUIRES: swift_feature_ParserASTGen
15-
// REQUIRES: swift_feature_ValueGenerics
1615

1716
// rdar://116686158
1817
// UNSUPPORTED: asan

test/DebugInfo/value-generics-embedded.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macos14 -emit-ir -g -enable-experimental-feature ValueGenerics -enable-experimental-feature Embedded -wmo -disable-availability-checking -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macos14 -emit-ir -g -enable-experimental-feature Embedded -wmo -disable-availability-checking -o - | %FileCheck %s
22

33
// REQUIRES: OS=macosx
44

55
// REQUIRES: swift_feature_Embedded
6-
// REQUIRES: swift_feature_ValueGenerics
76

87
// CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "InlineArray",{{.*}}size: 64{{.*}}elements: ![[ELTS:[0-9]+]], runtimeLang: DW_LANG_Swift, templateParams: ![[SLAB_PARAMS:[0-9]+]], identifier: "$es11InlineArrayVy$0_4main8MySpriteVGD", specification:
98
// CHECK-DAG: ![[SLAB_PARAMS]] = !{![[COUNT_PARAM:.*]], ![[ELEMENT_PARAM:.*]]}

test/DebugInfo/value-generics.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %target-swift-frontend %s -emit-ir -g -enable-builtin-module -enable-experimental-feature ValueGenerics -disable-availability-checking -o - | %FileCheck %s
2-
3-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-swift-frontend %s -emit-ir -g -enable-builtin-module -disable-availability-checking -o - | %FileCheck %s
42

53
import Builtin
64

test/IRGen/array_type_layout.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-ir -disable-availability-checking -enable-experimental-feature ValueGenerics %s | %FileCheck %s
2-
3-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-swift-frontend -emit-ir -disable-availability-checking %s | %FileCheck %s
42

53
struct VerySmallSlab<T> {
64
var inline: InlineArray<16, T?>

test/IRGen/builtin_vector_fixed_array.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %target-swift-frontend -emit-irgen -disable-availability-checking -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-irgen -disable-availability-checking -enable-experimental-feature BuiltinModule %s | %FileCheck %s
22

33
// REQUIRES: swift_feature_BuiltinModule
4-
// REQUIRES: swift_feature_ValueGenerics
4+
55
import Builtin
66
import Swift
77

test/IRGen/existential-bitwise-borrowability.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %{python} %utils/chex.py < %s > %t/existential-bitwise-borrowability.swift
3-
// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -enable-experimental-feature ValueGenerics -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %t/existential-bitwise-borrowability.swift | %FileCheck %t/existential-bitwise-borrowability.swift --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
3+
// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %t/existential-bitwise-borrowability.swift | %FileCheck %t/existential-bitwise-borrowability.swift --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
44

55
// REQUIRES: swift_feature_RawLayout
6-
// REQUIRES: swift_feature_ValueGenerics
76

87
// Copyable existentials are bitwise-borrowable (because copyable types are
98
// always bitwise-borrowable if they're bitwise-takable, and only bitwise-takable

test/IRGen/loadable_by_address_reg2mem_fixed_array.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// %target-swift-frontend %s -Xllvm -sil-print-after=loadable-address -import-objc-header %S/Inputs/large_c.h -c -o %t/t.o 2>&1 | %FileCheck %s
22

3-
// RUN: %target-swift-frontend %s -disable-availability-checking -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule -Xllvm -sil-print-types -Xllvm -sil-print-after=loadable-address -c -o %t/t.o 2>&1 | %FileCheck %s
3+
// RUN: %target-swift-frontend %s -disable-availability-checking -enable-experimental-feature BuiltinModule -Xllvm -sil-print-types -Xllvm -sil-print-after=loadable-address -c -o %t/t.o 2>&1 | %FileCheck %s
44

55
// REQUIRES: swift_feature_BuiltinModule
6-
// REQUIRES: swift_feature_ValueGenerics
76

87
// wasm currently disables aggressive reg2mem
98
// UNSUPPORTED: wasm

test/IRGen/raw_layout.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %{python} %utils/chex.py < %s > %t/raw_layout.sil
3-
// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -enable-experimental-feature ValueGenerics -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %t/raw_layout.sil | %FileCheck %t/raw_layout.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
3+
// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %t/raw_layout.sil | %FileCheck %t/raw_layout.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
44

55
// REQUIRES: swift_feature_RawLayout
6-
// REQUIRES: swift_feature_ValueGenerics
76

87
import Builtin
98
import Swift

test/IRGen/stdlib/Mutex.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %{python} %utils/chex.py < %s > %t/Mutex.swift
3-
// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -enable-experimental-feature ValueGenerics -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift -module-name stdlib %t/Mutex.swift | %FileCheck %t/Mutex.swift --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
3+
// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -emit-ir -disable-availability-checking -I %S/Inputs -cxx-interoperability-mode=upcoming-swift -module-name stdlib %t/Mutex.swift | %FileCheck %t/Mutex.swift --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
44

55
// REQUIRES: synchronization
66
// REQUIRES: swift_feature_RawLayout
7-
// REQUIRES: swift_feature_ValueGenerics
87

98
import Synchronization
109

test/Interpreter/value_generics.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// RUN: %target-run-simple-swift(-enable-experimental-feature ValueGenerics -Xfrontend -disable-availability-checking) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking) | %FileCheck %s
22

33
// UNSUPPORTED: use_os_stdlib
44
// UNSUPPORTED: back_deployment_runtime
55

66
// REQUIRES: executable_test
7-
// REQUIRES: swift_feature_ValueGenerics
87

98
struct A<let N: Int, let M: Int> {}
109

test/ModuleInterface/value_generics.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name ValueGeneric -enable-experimental-feature ValueGenerics -disable-availability-checking
2+
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name ValueGeneric -disable-availability-checking
33
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name ValueGeneric -disable-availability-checking
44
// RUN: %FileCheck %s < %t.swiftinterface
55

6-
// REQUIRES: swift_feature_ValueGenerics
7-
86
// CHECK: public struct Slab<Element, let N : Swift.Int>
97
public struct Slab<Element, let N: Int> {
108
// CHECK-LABEL: public var count: Swift.Int {

test/Prototypes/Vector.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// RUN: %target-run-simple-swift(-target %module-target-future -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule -Xfrontend -disable-experimental-parser-round-trip) | %FileCheck %s
2-
// RUN: %target-swift-frontend -target %module-target-future -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule -disable-experimental-parser-round-trip -emit-module %s -o %t/Vector.swiftmodule
1+
// RUN: %target-run-simple-swift(-target %module-target-future -enable-experimental-feature BuiltinModule -Xfrontend -disable-experimental-parser-round-trip) | %FileCheck %s
2+
// RUN: %target-swift-frontend -target %module-target-future -enable-experimental-feature BuiltinModule -disable-experimental-parser-round-trip -emit-module %s -o %t/Vector.swiftmodule
33

44
// REQUIRES: executable_test
55
// REQUIRES: swift_feature_BuiltinModule
6-
// REQUIRES: swift_feature_ValueGenerics
76
// UNSUPPORTED: use_os_stdlib
87
// UNSUPPORTED: back_deployment_runtime
98

test/Runtime/check_create_type.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -enable-experimental-feature ValueGenerics)
1+
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking)
22
// REQUIRES: executable_test
3-
// REQUIRES: swift_feature_ValueGenerics
43

54
// UNSUPPORTED: CPU=arm64e
65
// UNSUPPORTED: use_os_stdlib

test/SIL/Parser/basic2.sil

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %target-sil-opt -sil-print-types %s -enable-experimental-feature ValueGenerics | %target-sil-opt -sil-print-types -enable-experimental-feature ValueGenerics | %FileCheck %s
2-
3-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-sil-opt -sil-print-types %s | %target-sil-opt -sil-print-types | %FileCheck %s
42

53
import Builtin
64
import Swift

test/SIL/Serialization/basic2.sil

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// First parse this and then emit a *.sib. Then read in the *.sib, then recreate
22
// RUN: %empty-directory(%t)
3-
// RUN: %target-sil-opt -sil-print-types %s -emit-sib -o %t/tmp.sib -module-name basic2 -enable-experimental-feature ValueGenerics
4-
// RUN: %target-sil-opt -sil-print-types %t/tmp.sib -o %t/tmp.2.sib -module-name basic2 -enable-experimental-feature ValueGenerics
5-
// RUN: %target-sil-opt -sil-print-types %t/tmp.2.sib -module-name basic2 -emit-sorted-sil -enable-experimental-feature ValueGenerics | %FileCheck %s
6-
7-
// REQUIRES: swift_feature_ValueGenerics
3+
// RUN: %target-sil-opt -sil-print-types %s -emit-sib -o %t/tmp.sib -module-name basic2
4+
// RUN: %target-sil-opt -sil-print-types %t/tmp.sib -o %t/tmp.2.sib -module-name basic2
5+
// RUN: %target-sil-opt -sil-print-types %t/tmp.2.sib -module-name basic2 -emit-sorted-sil | %FileCheck %s
86

97
import Builtin
108
import Swift

test/SILGen/bitwise_copyable.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
// RUN: -emit-silgen \
44
// RUN: -target %target-swift-5.1-abi-triple \
55
// RUN: -enable-experimental-feature Sensitive \
6-
// RUN: -enable-experimental-feature ValueGenerics \
76
// RUN: -enable-builtin-module
87

98
// REQUIRES: swift_feature_Sensitive
10-
// REQUIRES: swift_feature_ValueGenerics
119

1210
// REQUIRES: asserts
1311

test/SILGen/builtin_vector.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -disable-experimental-parser-round-trip -disable-availability-checking -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule %s | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -disable-experimental-parser-round-trip -disable-availability-checking -enable-experimental-feature BuiltinModule %s | %FileCheck %s
22

33
// REQUIRES: swift_feature_BuiltinModule
4-
// REQUIRES: swift_feature_ValueGenerics
54

65
import Builtin
76

test/SILGen/closures.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
2-
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -module-name closures -parse-stdlib -parse-as-library %s -enable-experimental-feature ValueGenerics -disable-availability-checking | %FileCheck %s
3-
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -module-name closures -parse-stdlib -parse-as-library %s -enable-experimental-feature ValueGenerics -disable-availability-checking | %FileCheck %s --check-prefix=GUARANTEED
4-
5-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -module-name closures -parse-stdlib -parse-as-library %s -disable-availability-checking | %FileCheck %s
2+
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -module-name closures -parse-stdlib -parse-as-library %s -disable-availability-checking | %FileCheck %s --check-prefix=GUARANTEED
63

74
import Swift
85

test/SILGen/inlinearray_literal.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %target-swift-emit-silgen %s -disable-availability-checking -enable-experimental-feature ValueGenerics | %FileCheck %s
2-
3-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-swift-emit-silgen %s -disable-availability-checking | %FileCheck %s
42

53
import Synchronization
64

test/SILOptimizer/addressable_dependencies.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature BuiltinModule -enable-experimental-feature LifetimeDependence -enable-experimental-feature AddressableTypes -enable-experimental-feature ValueGenerics %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature BuiltinModule -enable-experimental-feature LifetimeDependence -enable-experimental-feature AddressableTypes %s | %FileCheck %s
22

33
// REQUIRES: swift_feature_BuiltinModule
44
// REQUIRES: swift_feature_AddressableTypes
55
// REQUIRES: swift_feature_LifetimeDependence
6-
// REQUIRES: swift_feature_ValueGenerics
76

87
import Builtin
98

test/SILOptimizer/cse_ossa.sil

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %target-sil-opt -sil-print-types -enable-sil-verify-all %s -update-borrowed-from -cse -enable-experimental-feature ValueGenerics | %FileCheck %s
2-
3-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-sil-opt -sil-print-types -enable-sil-verify-all %s -update-borrowed-from -cse | %FileCheck %s
42

53
sil_stage canonical
64

test/SILOptimizer/definite_init_builtin_vector.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %target-swift-frontend -emit-sil -disable-experimental-parser-round-trip -disable-availability-checking -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule %s
1+
// RUN: %target-swift-frontend -emit-sil -disable-experimental-parser-round-trip -disable-availability-checking -enable-experimental-feature BuiltinModule %s
22

33
// REQUIRES: swift_feature_BuiltinModule
4-
// REQUIRES: swift_feature_ValueGenerics
54

65
import Builtin
76

test/SILOptimizer/functionsigopts.sil

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %target-sil-opt -sil-print-types -sil-inline-generics -enable-sil-verify-all -inline -function-signature-opts -enable-experimental-feature ValueGenerics %s | %FileCheck %s
2-
// RUN: %target-sil-opt -sil-print-types -sil-inline-generics -enable-sil-verify-all -inline -function-signature-opts -enable-experimental-feature ValueGenerics %s | %FileCheck -check-prefix=CHECK-NEGATIVE %s
3-
4-
// REQUIRES: swift_feature_ValueGenerics
1+
// RUN: %target-sil-opt -sil-print-types -sil-inline-generics -enable-sil-verify-all -inline -function-signature-opts %s | %FileCheck %s
2+
// RUN: %target-sil-opt -sil-print-types -sil-inline-generics -enable-sil-verify-all -inline -function-signature-opts %s | %FileCheck -check-prefix=CHECK-NEGATIVE %s
53

64
import Builtin
75
import Swift

test/SILOptimizer/inlinearray_bounds_check_tests.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
// RUN: %target-swift-frontend %s -emit-sil -O \
2-
// RUN: -disable-availability-checking \
3-
// RUN: -enable-experimental-feature ValueGenerics | %FileCheck %s --check-prefix=CHECK-SIL
2+
// RUN: -disable-availability-checking | %FileCheck %s --check-prefix=CHECK-SIL
43

54
// RUN: %target-swift-frontend %s -emit-ir -O \
6-
// RUN: -disable-availability-checking \
7-
// RUN: -enable-experimental-feature ValueGenerics | %FileCheck %s --check-prefix=CHECK-IR
5+
// RUN: -disable-availability-checking | %FileCheck %s --check-prefix=CHECK-IR
86

97
// REQUIRES: swift_in_compiler
10-
// REQUIRES: swift_feature_ValueGenerics
118
// REQUIRES: swift_stdlib_no_asserts, optimized_stdlib
129

1310
// Bounds check should be eliminated

test/SILOptimizer/sil_combine.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %target-sil-opt -sil-print-types -enable-objc-interop -enable-sil-verify-all %s -sil-combine -enable-experimental-feature ValueGenerics | %FileCheck %s
1+
// RUN: %target-sil-opt -sil-print-types -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
22

33
// REQUIRES: swift_in_compiler
4-
// REQUIRES: swift_feature_ValueGenerics
54

65
// Declare this SIL to be canonical because some tests break raw SIL
76
// conventions. e.g. address-type block args. -enforce-exclusivity=none is also

test/SILOptimizer/static_inline_arrays.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
// RUN: %target-swift-frontend -parse-as-library -primary-file %s -O -disable-availability-checking -enable-experimental-feature ValueGenerics -module-name=test -emit-sil | %FileCheck %s
1+
// RUN: %target-swift-frontend -parse-as-library -primary-file %s -O -disable-availability-checking -module-name=test -emit-sil | %FileCheck %s
22

33
// Also do an end-to-end test to check all components, including IRGen.
44
// RUN: %empty-directory(%t)
5-
// RUN: %target-build-swift -parse-as-library -O -Xfrontend -disable-availability-checking -enable-experimental-feature ValueGenerics -module-name=test %s -o %t/a.out
5+
// RUN: %target-build-swift -parse-as-library -O -Xfrontend -disable-availability-checking -module-name=test %s -o %t/a.out
66
// RUN: %target-codesign %t/a.out
77
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
88

99
// REQUIRES: executable_test,optimized_stdlib
10-
// REQUIRES: swift_feature_ValueGenerics
1110
// UNSUPPORTED: back_deployment_runtime
1211

1312
extension InlineArray: Collection {

test/Sema/bitwise_copyable.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// RUN: %target-typecheck-verify-swift \
22
// RUN: -disable-availability-checking \
3-
// RUN: -enable-experimental-feature ValueGenerics \
43
// RUN: -enable-experimental-feature Sensitive \
54
// RUN: -enable-builtin-module \
65
// RUN: -debug-diagnostic-names
76

8-
// REQUIRES: swift_feature_ValueGenerics
97
// REQUIRES: swift_feature_Sensitive
108

119
//==============================================================================

test/Sema/builtin_int.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %target-swift-frontend -disable-experimental-parser-round-trip -enable-experimental-feature ValueGenerics -enable-experimental-feature BuiltinModule -typecheck -verify %s
1+
// RUN: %target-swift-frontend -disable-experimental-parser-round-trip -enable-experimental-feature BuiltinModule -typecheck -verify %s
22

33
// REQUIRES: swift_feature_BuiltinModule
4-
// REQUIRES: swift_feature_ValueGenerics
54

65
import Builtin
76

0 commit comments

Comments
 (0)