Skip to content

Commit 78b635a

Browse files
authored
Merge pull request #73514 from kavon/6.0-ncgeneric-not-experimental
2 parents f42d619 + 45b42be commit 78b635a

File tree

138 files changed

+85
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+85
-215
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ LANGUAGE_FEATURE(MoveOnlyPartialConsumption, 429, "Partial consumption of noncop
179179
LANGUAGE_FEATURE(BitwiseCopyable, 426, "BitwiseCopyable protocol")
180180
SUPPRESSIBLE_LANGUAGE_FEATURE(ConformanceSuppression, 426, "Suppressible inferred conformances")
181181
SUPPRESSIBLE_LANGUAGE_FEATURE(BitwiseCopyable2, 426, "BitwiseCopyable feature")
182+
SUPPRESSIBLE_LANGUAGE_FEATURE(NoncopyableGenerics, 427, "Noncopyable generics")
182183

183184
// Swift 6
184185
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)
@@ -321,9 +322,6 @@ EXPERIMENTAL_FEATURE(RawLayout, true)
321322
/// Enables the "embedded" swift mode (no runtime).
322323
EXPERIMENTAL_FEATURE(Embedded, true)
323324

324-
/// Enables noncopyable generics
325-
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(NoncopyableGenerics, true)
326-
327325
// Alias for NoncopyableGenerics
328326
EXPERIMENTAL_FEATURE(NoncopyableGenerics2, true)
329327

test/Concurrency/transfernonsendable_instruction_matching.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-sil-opt -transfer-non-sendable -enable-upcoming-feature RegionBasedIsolation -strict-concurrency=complete %s -verify -o /dev/null
2-
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -transfer-non-sendable -enable-upcoming-feature RegionBasedIsolation -strict-concurrency=complete %s -verify -o /dev/null
32

43
// REQUIRES: concurrency
54
// REQUIRES: asserts
@@ -1797,4 +1796,4 @@ bb0:
17971796

17981797
%9999 = tuple ()
17991798
return %9999 : $()
1800-
}
1799+
}

test/Generics/copyable_and_self_conforming_protocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes %s -verify
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-experimental-feature NonescapableTypes %s -verify
22

33
// REQUIRES: objc_interop
44
// REQUIRES: asserts

test/Generics/inverse_associatedtype_restriction.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-typecheck-verify-swift \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -enable-experimental-feature NonescapableTypes
43

54
// The restriction is that we don't permit suppression requirements on

test/Generics/inverse_classes1.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-typecheck-verify-swift \
22
// RUN: -parse-stdlib -module-name Swift \
3-
// RUN: -enable-experimental-feature MoveOnlyClasses \
4-
// RUN: -enable-experimental-feature NoncopyableGenerics
3+
// RUN: -enable-experimental-feature MoveOnlyClasses
54

65
// NOTE: -parse-stdlib is a transitional workaround and should not be required.
76

test/Generics/inverse_classes2.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-typecheck-verify-swift \
2-
// RUN: -parse-stdlib -module-name Swift \
3-
// RUN: -enable-experimental-feature NoncopyableGenerics
2+
// RUN: -parse-stdlib -module-name Swift
43

54
// NOTE: -parse-stdlib is a transitional workaround and should not be required.
65

test/Generics/inverse_conditional_conformance_restriction.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-typecheck-verify-swift \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -enable-experimental-feature NonescapableTypes \
43
// RUN: -enable-experimental-feature SuppressedAssociatedTypes
54

test/Generics/inverse_copyable_requirement.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-typecheck-verify-swift
2-
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
32

43
// a concrete move-only type
54
struct MO: ~Copyable {

test/Generics/inverse_copyable_requirement_errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
1+
// RUN: %target-typecheck-verify-swift
22

33
// a concrete move-only type
44
struct MO: ~Copyable {

test/Generics/inverse_extension_signatures.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -enable-experimental-feature NonescapableTypes \
43
// RUN: -verify -typecheck %s -debug-generic-signatures \
54
// RUN: -debug-inverse-requirements 2>&1 | %FileCheck %s --implicit-check-not "error:"

test/Generics/inverse_extensions.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-typecheck-verify-swift \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -enable-experimental-feature NonescapableTypes \
43
// RUN: -enable-experimental-feature SuppressedAssociatedTypes
54

test/Generics/inverse_generics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-typecheck-verify-swift \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -enable-experimental-feature NonescapableTypes \
43
// RUN: -enable-experimental-feature SuppressedAssociatedTypes
54

test/Generics/inverse_generics_stdlib.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -parse-stdlib -module-name Swift -enable-experimental-feature BuiltinModule -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes
1+
// RUN: %target-typecheck-verify-swift -parse-stdlib -module-name Swift -enable-experimental-feature BuiltinModule -enable-experimental-feature NonescapableTypes
22

33

44

test/Generics/inverse_protocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
1+
// RUN: %target-typecheck-verify-swift
22

33

44

test/Generics/inverse_protocols_errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
1+
// RUN: %target-typecheck-verify-swift
22

33

44

test/Generics/inverse_rdar119950540.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend %s -emit-silgen -enable-experimental-feature NoncopyableGenerics > /dev/null
1+
// RUN: %target-swift-frontend %s -emit-silgen > /dev/null
22

33

44

test/Generics/inverse_scoping.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes -enable-experimental-feature SuppressedAssociatedTypes
1+
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NonescapableTypes -enable-experimental-feature SuppressedAssociatedTypes
22

33

44

test/Generics/inverse_signatures.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -enable-experimental-feature NonescapableTypes \
43
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
54
// RUN: -verify -typecheck %s -debug-generic-signatures \

test/IRGen/existential_shape_metadata_noncopyable.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %target-swift-frontend \
22
// RUN: -emit-ir %s -swift-version 5 \
33
// RUN: -disable-availability-checking \
4-
// RUN: -enable-experimental-feature NoncopyableGenerics \
54
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
65
// RUN: -module-name existential_shape_metadata | %IRGenFileCheck %s
76

test/IRGen/mangling_inverse_generics_evolution.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -emit-ir -o - %s -module-name test \
3-
// RUN: -enable-experimental-feature NoncopyableGenerics \
43
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
54
// RUN: -enable-experimental-feature NonescapableTypes \
65
// RUN: -parse-as-library \

test/IRGen/moveonly_enum_deinits.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-irgen \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -disable-type-layout \
43
// RUN: %s \
54
// RUN: | \

test/IRGen/moveonly_value_functions.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-irgen -O \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: -disable-type-layout \
43
// RUN: %s \
54
// RUN: | \

test/IRGen/moveonly_value_functions_onone.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-irgen -Onone \
2-
// RUN: -enable-experimental-feature NoncopyableGenerics \
32
// RUN: %s \
43
// RUN: | \
54
// RUN: %IRGenFileCheck %s

test/IRGen/noncopyable_field_descriptors.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -emit-ir -o - %s -module-name test \
3-
// RUN: -enable-experimental-feature NoncopyableGenerics \
43
// RUN: -enable-experimental-feature NonescapableTypes \
54
// RUN: -parse-as-library \
65
// RUN: -enable-library-evolution \

test/Interop/Cxx/class/move-only/inherited-field-access-irgen.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=swift-6 -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
2-
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=upcoming-swift -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
1+
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=swift-6 %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
2+
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
3+
4+
// REQUIRES: rdar128013193
35

46
// REQUIRES: rdar128013193
57

test/Interop/Cxx/class/move-only/inherited-field-access-silgen.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=swift-6 -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none | %FileCheck %s
2-
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=upcoming-swift -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none | %FileCheck %s
1+
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=swift-6 %s -validate-tbd-against-ir=none | %FileCheck %s
2+
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %s -validate-tbd-against-ir=none | %FileCheck %s
3+
4+
// REQUIRES: rdar128013193
35

46
// REQUIRES: rdar128013193
57

test/Interpreter/currying_generics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
2-
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
32

43
// REQUIRES: executable_test
54

test/Interpreter/escapable_generics_casting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes) | %FileCheck %s
2-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NonescapableTypes) | %FileCheck %s
2+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NonescapableTypes) | %FileCheck %s
33

44
// REQUIRES: executable_test, asserts
55

test/Interpreter/existential_member_accesses_self_assoctype.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-run-simple-swift
2-
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics
32
// REQUIRES: executable_test
43

54
import StdlibUnittest

test/Interpreter/generic_casts.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// RUN: %target-run %t/a.out | %FileCheck --check-prefix CHECK %s
88
// RUN: %target-run %t/a.out.optimized | %FileCheck --check-prefix CHECK %s
99

10-
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -Onone %s -o %t/a.out
11-
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -O %s -o %t/a.out.optimized
10+
// RUN: %target-build-swift -Onone %s -o %t/a.out
11+
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
1212
// RUN: %target-codesign %t/a.out
1313
// RUN: %target-codesign %t/a.out.optimized
1414
//

test/Interpreter/generic_casts_objc.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// RUN: %target-codesign %t/a.out.optimized
77
// RUN: %target-run %t/a.out.optimized | %FileCheck %s
88

9-
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -Onone %s -o %t/a.out
9+
// RUN: %target-build-swift -Onone %s -o %t/a.out
1010
// RUN: %target-codesign %t/a.out
1111
// RUN: %target-run %t/a.out | %FileCheck %s
12-
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -O %s -o %t/a.out.optimized
12+
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
1313
// RUN: %target-codesign %t/a.out.optimized
1414
// RUN: %target-run %t/a.out.optimized | %FileCheck %s
1515

test/Interpreter/moveonly_address_maximize.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all) | %FileCheck %s
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
33

4-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all) | %FileCheck %s
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
6-
74
// REQUIRES: executable_test
85

96
struct S : ~Copyable {

test/Interpreter/moveonly_bufferview.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all) | %FileCheck %s
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
33

4-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all) | %FileCheck %s
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
6-
74
// REQUIRES: executable_test
85

96
public struct BufferView<T>: ~Copyable {

test/Interpreter/moveonly_computed_property_in_class.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all)
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)
33

4-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all)
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all)
6-
74
// REQUIRES: executable_test
85
@_moveOnly
96
struct FileDescriptor {

test/Interpreter/moveonly_consuming_param.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
33

4-
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
6-
74
// REQUIRES: executable_test
85

96
@_moveOnly

test/Interpreter/moveonly_deinit_autoclosure.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-run-simple-swift
2-
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics
32

43
// REQUIRES: executable_test
54

test/Interpreter/moveonly_discard.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
22
// RUN: %target-run-simple-swift(-O -Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
33

4-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
6-
74
// REQUIRES: executable_test
85

96
// NOTE: it's important that this test has the `--implicit-check-not closing` flag to catch double deinits!!

test/Interpreter/moveonly_escaping_capture_lifetimes.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
33

4-
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
6-
74
// REQUIRES: executable_test
85

96
@_moveOnly

test/Interpreter/moveonly_escaping_definite_initialization.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift | %FileCheck %s
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
33

4-
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
6-
74
// REQUIRES: executable_test
85

96
@_moveOnly

test/Interpreter/moveonly_field_in_class_reflection.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-move-only)
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -Xfrontend -enable-experimental-move-only)
33

4-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -enable-experimental-move-only)
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all -Xfrontend -enable-experimental-move-only)
6-
74
// REQUIRES: executable_test
85

96
// Verify that iterating through the fields of an object whose class has

test/Interpreter/moveonly_generics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics)
2-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics)
1+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all)
2+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)
33

44
// REQUIRES: executable_test
55
// REQUIRES: asserts

test/Interpreter/moveonly_generics_associatedtype.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %target-swift-emit-sil %s -DBAD_COPY -verify -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes
2-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
3-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
1+
// RUN: %target-swift-emit-sil %s -DBAD_COPY -verify -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes
2+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
3+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
44

55
// REQUIRES: executable_test
66
// REQUIRES: asserts

test/Interpreter/moveonly_generics_casting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics) | %FileCheck %s
2-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all) | %FileCheck %s
2+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
33

44
// REQUIRES: executable_test
55

test/Interpreter/moveonly_generics_casting_assoctypes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes)
2-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes)
1+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes)
2+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes)
33

44
// REQUIRES: executable_test
55

test/Interpreter/moveonly_linkedlist.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)
33
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules)
44

5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all)
6-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all)
7-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules)
8-
95
// REQUIRES: executable_test
106

117
/// A class that we use as a box to store the memory for one of our linked list

0 commit comments

Comments
 (0)