Skip to content

Commit 554fa49

Browse files
committedApr 1, 2024·
Test: clean-up noncopyable_generics lit usage
There no longer is a lit feature called `noncopyable_generics`, it's just always on now.

20 files changed

+18
-23
lines changed
 

‎test/ModuleInterface/moveonly_interface_flag.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -I %t
44
// RUN: %FileCheck %s < %t/Library.swiftinterface
55

6-
// XFAIL: noncopyable_generics
6+
77

88
// this test makes sure that decls containing a move-only type are guarded by the $MoveOnly feature flag
99

‎test/Parse/inverses_legacy.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// XFAIL: noncopyable_generics
3+
44

55
protocol Sando { func make() } // expected-note {{protocol requires function 'make()'}}
66
// expected-note@-1 {{type 'U' does not conform to inherited protocol 'Copyable'}}

‎test/Parse/inverses_legacy_ifdef.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %swift-frontend -typecheck %s
22
// RUN: %swift-frontend -typecheck %s -verify -DHAVE_NCGENERICS
33

4-
// XFAIL: noncopyable_generics
4+
55

66
/// This test checks that you can write ~Copyable in places that were illegal
77
/// in Swift 5.9, as long as those illegal appearances are guarded within

‎test/SIL/Parser/array_roundtrip.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
// FIXME(NCG): This produces `cannot suppress conformances here` errors due to
88
// all the new <τ_0_0 where τ_0_0 : ~Copyable> clauses
9-
// XFAIL: !noncopyable_generics
9+
// rdar://124657305 (@substituted generic signatures need to either include inverses or the Copyable/Escapable conformances)
10+
// XFAIL: *
1011

1112
var W = [UInt32](repeating: 0, count: 16)

‎test/SILGen/raw_layout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-emit-silgen -enable-experimental-feature RawLayout -enable-builtin-module %s | %FileCheck %s
22

3-
// XFAIL: noncopyable_generics
3+
44

55
// CHECK: @_rawLayout(size: 4, alignment: 4) @_moveOnly struct Lock
66
// CHECK: @_rawLayout(like: T) @_moveOnly struct Cell<T>

‎test/SILGen/variadic-generic-reabstract-tuple-result.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-emit-silgen -disable-availability-checking %s | %FileCheck %s
22

3-
// XFAIL: noncopyable_generics
3+
44

55
// rdar://110391963
66

‎test/Sema/bitwise_copyable.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
// RUN: -enable-builtin-module \
77
// RUN: -debug-diagnostic-names
88

9-
// XFAIL: noncopyable_generics
10-
11-
// REQUIRES: noncopyable_generics
9+
// XFAIL: *
1210

1311
//==============================================================================
1412
//===========================DEPENDENCY-FREE TESTS=(BEGIN)===================={{

‎test/Sema/explicit_lifetime_dependence_specifiers2.swift

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-feature NonescapableTypes -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BitwiseCopyable
22
// REQUIRES: asserts
3-
// REQUIRES: noncopyable_generics
43
// REQUIRES: nonescapable_types
54

65
struct AnotherBufferView : ~Escapable, _BitwiseCopyable {

‎test/Serialization/AllowErrors/removed-decls.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: mkdir -p %t/swiftmods %t/objcmods %t/objc
55
// RUN: %{python} %utils/split_file.py -o %t %s
66

7-
// XFAIL: noncopyable_generics
7+
88

99
// Create a module A, then B that depends on A, replace A with an empty module,
1010
// and then try make a C that depends on B

‎test/Serialization/noncopyable_generics.swift

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
// RUN: -I %t -source-filename=%s \
1616
// RUN: | %FileCheck -check-prefix=CHECK-PRINT %s
1717

18-
// REQUIRES: noncopyable_generics
19-
2018
// CHECK-NOT: UnknownCode
2119

2220
// CHECK-PRINT-DAG: protocol Generator<Value> {

‎test/api-digester/compare-dump-abi-parsable-interface.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
// RUN: %clang -E -P -x c %t.result -o - | sed '/^\s*$/d' > %t.result.tmp
1414
// RUN: diff -u %t.expected %t.result.tmp
1515

16-
// XFAIL: noncopyable_generics
16+
1717

‎test/api-digester/compare-dump-abi.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
// CHECK: cake_current/cake.swift:39:15: error: ABI breakage: struct C6 is now with @frozen
2222
// CHECK: cake_current/cake.swift:41:13: error: ABI breakage: enum IceKind is now without @frozen
2323

24-
// XFAIL: noncopyable_generics
24+
2525

‎test/api-digester/compare-dump-parsable-interface.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
// RUN: %clang -E -P -x c %t.result -o - | sed '/^\s*$/d' > %t.result.tmp
1414
// RUN: diff -u %t.expected %t.result.tmp
1515

16-
// XFAIL: noncopyable_generics
16+
1717

‎test/api-digester/compare-dump.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// RUN: %clang -E -P -x c %t.result -o - | sed '/^\s*$/d' > %t.result.tmp
3333
// RUN: diff -u %t.expected %t.result.tmp
3434

35-
// XFAIL: noncopyable_generics
35+
3636

‎test/api-digester/dump-module.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
// when automatically evolving the standard library.
2121
// UNSUPPORTED: swift_evolve
2222

23-
// XFAIL: noncopyable_generics
23+

‎test/api-digester/internal-extension.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: VENDOR=apple
22

3-
// XFAIL: noncopyable_generics
3+
44

55
// RUN: %empty-directory(%t.mod)
66
// RUN: %empty-directory(%t.sdk)

‎test/api-digester/stability-concurrency-abi.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ Func TaskLocal.withValueImpl(_:operation:file:line:) is a new API without @avail
9292

9393
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
9494

95-
// XFAIL: noncopyable_generics
95+
9696

‎test/api-digester/stability-stdlib-abi-with-asserts.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ Struct _RuntimeFunctionCounters is a new API without @available attribute
6666

6767
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
6868

69-
// XFAIL: noncopyable_generics
69+

‎test/api-digester/stability-stdlib-source.swift

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' | sort > %t.tmp/changes.txt.tmp
1414
// RUN: diff -u %t.tmp/stability-stdlib-source.swift.expected %t.tmp/changes.txt.tmp
1515

16-
// XFAIL: noncopyable_generics

‎test/stdlib/Noncopyables/MemoryLayout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics) | %FileCheck %s
3-
// REQUIRES: executable_test, noncopyable_generics
3+
// REQUIRES: executable_test
44

55
struct A: ~Copyable {
66
let value: Int

0 commit comments

Comments
 (0)
Please sign in to comment.