Skip to content

Commit 9d65c9e

Browse files
committed
enable move-only and move-only classes in production builds
1 parent 9b01270 commit 9d65c9e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
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)

0 commit comments

Comments
 (0)