diff --git a/lib/ASTGen/Sources/ASTGen/SourceFile.swift b/lib/ASTGen/Sources/ASTGen/SourceFile.swift index 7dd2bb67e3cfa..93b91d40205b2 100644 --- a/lib/ASTGen/Sources/ASTGen/SourceFile.swift +++ b/lib/ASTGen/Sources/ASTGen/SourceFile.swift @@ -60,6 +60,7 @@ extension Parser.ExperimentalFeatures { mapFeature(.DoExpressions, to: .doExpressions) mapFeature(.NonescapableTypes, to: .nonescapableTypes) mapFeature(.TransferringArgsAndResults, to: .transferringArgsAndResults) + mapFeature(.BorrowingSwitch, to: .borrowingSwitch) } } diff --git a/test/SILGen/borrowing_switch_subjects.swift b/test/SILGen/borrowing_switch_subjects.swift index 6b677fee251b3..c87921987d11f 100644 --- a/test/SILGen/borrowing_switch_subjects.swift +++ b/test/SILGen/borrowing_switch_subjects.swift @@ -1,4 +1,4 @@ -// RUN: %target-swift-emit-silgen -enable-experimental-feature BorrowingSwitch -disable-experimental-parser-round-trip %s | %FileCheck %s +// RUN: %target-swift-emit-silgen -enable-experimental-feature BorrowingSwitch %s | %FileCheck %s struct Inner: ~Copyable {} diff --git a/test/SILOptimizer/moveonly_borrowing_switch.swift b/test/SILOptimizer/moveonly_borrowing_switch.swift index 090c053500e20..d76a0fe50897d 100644 --- a/test/SILOptimizer/moveonly_borrowing_switch.swift +++ b/test/SILOptimizer/moveonly_borrowing_switch.swift @@ -1,4 +1,4 @@ -// RUN: %target-swift-frontend -emit-sil -verify -enable-experimental-feature BorrowingSwitch -disable-experimental-parser-round-trip %s +// RUN: %target-swift-frontend -emit-sil -verify -enable-experimental-feature BorrowingSwitch %s struct Payload: ~Copyable { var x: Int diff --git a/test/SILOptimizer/moveonly_borrowing_switch_copyable_subpattern.swift b/test/SILOptimizer/moveonly_borrowing_switch_copyable_subpattern.swift index 0a50d48bc1f1c..7307db6ea2140 100644 --- a/test/SILOptimizer/moveonly_borrowing_switch_copyable_subpattern.swift +++ b/test/SILOptimizer/moveonly_borrowing_switch_copyable_subpattern.swift @@ -1,4 +1,4 @@ -// RUN: %target-swift-frontend -emit-sil -verify -enable-experimental-feature BorrowingSwitch -disable-experimental-parser-round-trip %s +// RUN: %target-swift-frontend -emit-sil -verify -enable-experimental-feature BorrowingSwitch %s struct Payload: ~Copyable { var x: Int