[Features] FullTypedThrows should only be enable-able in asserts builds.

The implementation of this experimental feature is not complete and it's
not ready to be enabled in production.
This commit is contained in:
Holly Borla
2024-06-14 21:21:27 -07:00
parent 9c868f8454
commit 32aba12db3
3 changed files with 5 additions and 1 deletions

View File

@@ -227,7 +227,7 @@ EXPERIMENTAL_FEATURE(FlowSensitiveConcurrencyCaptures, false)
EXPERIMENTAL_FEATURE(CodeItemMacros, false)
EXPERIMENTAL_FEATURE(PreambleMacros, false)
EXPERIMENTAL_FEATURE(TupleConformances, false)
EXPERIMENTAL_FEATURE(FullTypedThrows, true)
EXPERIMENTAL_FEATURE(FullTypedThrows, false)
// Whether to enable @_used and @_section attributes
EXPERIMENTAL_FEATURE(SymbolLinkageMarkers, true)

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-emit-silgen %s -enable-experimental-feature FullTypedThrows | %FileCheck %s
// REQUIRES: asserts
public func genericThrow<E>(e: E) throws(E) {
throw e
}

View File

@@ -1,5 +1,7 @@
// RUN: %target-typecheck-verify-swift -enable-experimental-feature FullTypedThrows
// REQUIRES: asserts
enum MyError: Error {
case failed
case epicFailed