Skip to content

Commit ae0f156

Browse files
authored
Merge pull request swiftlang#63205 from kavon/moveonlyclasses-even-in-prod
Allow `MoveOnlyClasses` in non-assert builds
2 parents c285bab + 9d65c9e commit ae0f156

7 files changed

+7
-8
lines changed

include/swift/Basic/Features.def

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,13 @@ EXPERIMENTAL_FEATURE(StaticAssert, false)
102102
EXPERIMENTAL_FEATURE(VariadicGenerics, false)
103103
EXPERIMENTAL_FEATURE(NamedOpaqueTypes, false)
104104
EXPERIMENTAL_FEATURE(FlowSensitiveConcurrencyCaptures, false)
105-
EXPERIMENTAL_FEATURE(MoveOnly, false)
106-
EXPERIMENTAL_FEATURE(MoveOnlyClasses, false)
105+
EXPERIMENTAL_FEATURE(MoveOnly, true)
106+
107+
// FIXME: MoveOnlyClasses is not intended to be in production,
108+
// but our tests currently rely on it, and we want to run those
109+
// tests in non-asserts builds too.
110+
EXPERIMENTAL_FEATURE(MoveOnlyClasses, true)
111+
107112
EXPERIMENTAL_FEATURE(OneWayClosureParameters, false)
108113
EXPERIMENTAL_FEATURE(TypeWitnessSystemInference, false)
109114
EXPERIMENTAL_FEATURE(LayoutPrespecialization, false)

test/SILGen/moveonly.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-silgen -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s | %FileCheck %s
2-
// REQUIRES: asserts
32

43
//////////////////
54
// Declarations //

test/SILGen/moveonly_var.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-swift-emit-silgen -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s | %FileCheck %s
22
// RUN: %target-swift-emit-sil -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s | %FileCheck %s
3-
// REQUIRES: asserts
43

54
//////////////////
65
// Declarations //

test/SILOptimizer/moveonly_addresschecker_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-sil -verify -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s
2-
// REQUIRES: asserts
32

43
//////////////////
54
// Declarations //

test/SILOptimizer/moveonly_lifetime.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-sil -Onone -verify -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s | %FileCheck %s
2-
// REQUIRES: asserts
32

43
@_moveOnly
54
class C {}

test/SILOptimizer/moveonly_objectchecker_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-sil -verify -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s
2-
// REQUIRES: asserts
32

43
//////////////////
54
// Declarations //

test/SILOptimizer/moveonly_trivial_addresschecker_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-emit-sil -verify -enable-experimental-move-only -enable-experimental-feature MoveOnlyClasses %s
2-
// REQUIRES: asserts
32

43
//////////////////
54
// Declarations //

0 commit comments

Comments
 (0)