Skip to content

Commit b26b45b

Browse files
authored
Merge pull request #74449 from hborla/6.0-dont-enable-full-typed-throws
[6.0][Features] FullTypedThrows should only be enable-able in asserts builds.
2 parents f2c13a6 + 004ab0c commit b26b45b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ EXPERIMENTAL_FEATURE(FlowSensitiveConcurrencyCaptures, false)
228228
EXPERIMENTAL_FEATURE(CodeItemMacros, false)
229229
EXPERIMENTAL_FEATURE(PreambleMacros, false)
230230
EXPERIMENTAL_FEATURE(TupleConformances, false)
231-
EXPERIMENTAL_FEATURE(FullTypedThrows, true)
231+
EXPERIMENTAL_FEATURE(FullTypedThrows, false)
232232

233233
// Whether to enable @_used and @_section attributes
234234
EXPERIMENTAL_FEATURE(SymbolLinkageMarkers, true)

test/SILGen/typed_throws_generic.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-emit-silgen %s -enable-experimental-feature FullTypedThrows | %FileCheck %s
22

3+
// REQUIRES: asserts
4+
35
public func genericThrow<E>(e: E) throws(E) {
46
throw e
57
}

test/stmt/typed_throws.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 FullTypedThrows
22

3+
// REQUIRES: asserts
4+
35
enum MyError: Error {
46
case failed
57
case epicFailed

0 commit comments

Comments
 (0)