Skip to content

Commit a69f9e4

Browse files
committed
experimental feature tests require asserts
When using an experimental feature that is not available in production, a test needs to have `REQUIRES: asserts` so that non-assert builds don't unexpectedly fail.
1 parent 4b7c020 commit a69f9e4

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

test/Concurrency/radar_concurrency_nio.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// RUN: %target-swift-frontend -enable-experimental-move-only %s -emit-sil -o /dev/null -verify -strict-concurrency=complete
44
// RUN: %target-swift-frontend -enable-experimental-move-only %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-experimental-feature SendNonSendable
55

6+
// REQUIRES: asserts
7+
68
// REQUIRES: concurrency
79

810
public protocol EventLoop: Sendable {}

test/Constraints/copyable_requirement.swift

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

3+
// REQUIRES: asserts
4+
35
// a concrete move-only type
46
@_moveOnly struct MO {
57
var x: Int?

test/decl/protocol/req/associated_type_tuple.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift -enable-experimental-feature TupleConformances
22

3+
// REQUIRES: asserts
4+
35
typealias Tuple<each T> = (repeat each T)
46

57
protocol P1 {

test/type/implicit_some/explicit_existential.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift -disable-availability-checking -warn-redundant-requirements -enable-experimental-feature ImplicitSome
22

3+
// REQUIRES: asserts
4+
35
protocol Foo { }
46

57
var x: any Foo
@@ -290,5 +292,3 @@ protocol PP {}
290292
struct A : PP {}
291293
let _: any PP = A() // Ok
292294
let _: any (any PP) = A() // expected-error{{redundant 'any' in type 'any (any PP)'}} {{8-12=}}
293-
294-

0 commit comments

Comments
 (0)