Skip to content

Commit 4db04f9

Browse files
authored
Merge pull request #77135 from tshortli/reenable-availability-checking-generics
Tests: Remove -disable-availability-checking in variadic generics tests
2 parents 10b3ed3 + f827e7c commit 4db04f9

File tree

51 files changed

+66
-66
lines changed

Some content is hidden

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

51 files changed

+66
-66
lines changed

test/Constraints/issue-67906.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 -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.9-abi-triple
22

33
struct G<each T>: Sequence {
44
typealias Element = Int

test/Constraints/nested_pack_expansion.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.9-abi-triple
22

33
func sameType<T>(_: T.Type, _: T.Type) {}
44

@@ -86,4 +86,4 @@ extension G {
8686

8787
sameType(G<X1, Y1, Z1>.C1<X2, Y2, Z2>.self, Expanded.self)
8888
sameType(G<X1, Y1, Z1>.C2<X3, Y3, Z3>.self, Expanded.self)
89-
sameType(G<X2, Y2, Z2>.C3<X3, Y3, Z3>.self, Expanded.self)
89+
sameType(G<X2, Y2, Z2>.C3<X3, Y3, Z3>.self, Expanded.self)

test/Constraints/one_element_tuple.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 -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.9-abi-triple
22

33
let t1: (_: Int) = (_: 3)
44

test/Constraints/pack-expansion-expressions.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 -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.9-abi-triple
22

33
func tuplify<each T>(_ t: repeat each T) -> (repeat each T) {
44
return (repeat each t)

test/Constraints/variadic_generic_init.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 -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.9-abi-triple
22

33
// These test cases exercise variants of rdar://problem/112785081
44
// and https://github.com/apple/swift/issues/68160.

test/Constraints/variadic_generic_types.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -disable-availability-checking
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.9-abi-triple
22

33
// Parsing an UnresolvedSpecializeExpr containing a PackExpansionType
44
struct G<each T> {}
@@ -117,4 +117,4 @@ do {
117117

118118
_ = Foo(nil) // expected-error {{'nil' requires a contextual type}}
119119
_ = Foo(nil, 1) // expected-error {{'nil' requires a contextual type}}
120-
}
120+
}

test/DebugInfo/variadic-generics-count.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-swift-frontend -emit-ir %s -g -o - \
2-
// RUN: -parse-as-library -module-name a -disable-availability-checking | %FileCheck %s
2+
// RUN: -parse-as-library -module-name a -target %target-swift-5.9-abi-triple | %FileCheck %s
33

44
public func f1<each T>(ts: repeat each T) {
55
// CHECK: define {{.*}} @"$s1a2f12tsyxxQp_tRvzlF"(ptr {{.*}}, i{{32|64}} [[COUNT1_1:.*]], ptr {{.*}})

test/DebugInfo/variadic-generics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-swift-frontend -emit-ir %s -g -o - \
2-
// RUN: -parse-as-library -module-name a -disable-availability-checking | %IRGenFileCheck %s
2+
// RUN: -parse-as-library -module-name a -target %target-swift-5.9-abi-triple | %IRGenFileCheck %s
33

44
public func foo<each T>(args: repeat each T) {
55
// CHECK: define {{.*}} @"$s1a3foo4argsyxxQp_tRvzlF"

test/Generics/parameter-pack-requirements.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-availability-checking 2>&1 | %FileCheck %s
1+
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -target %target-swift-5.9-abi-triple 2>&1 | %FileCheck %s
22

33
protocol P {
44
associatedtype A: P

test/Generics/rdar115538386.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -typecheck %s -disable-availability-checking
1+
// RUN: %target-swift-frontend -typecheck %s -target %target-swift-5.9-abi-triple
22

33
protocol P<A> {
44
associatedtype A

0 commit comments

Comments
 (0)