mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Map BorrowAndMutateAccessors experimental feature to swift-syntax equivalent
This commit is contained in:
@@ -86,6 +86,7 @@ extension Parser.ExperimentalFeatures {
|
||||
mapFeature(.OldOwnershipOperatorSpellings, to: .oldOwnershipOperatorSpellings)
|
||||
mapFeature(.KeyPathWithMethodMembers, to: .keypathWithMethodMembers)
|
||||
mapFeature(.DefaultIsolationPerFile, to: .defaultIsolationPerFile)
|
||||
mapFeature(.BorrowAndMutateAccessors, to: .borrowAndMutateAccessors)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -emit-executable -enable-experimental-feature BorrowAndMutateAccessors -Xfrontend -disable-experimental-parser-round-trip -o %t/a.out
|
||||
// RUN: %target-build-swift %s -emit-executable -enable-experimental-feature BorrowAndMutateAccessors -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN:%target-swift-frontend -emit-silgen %s -enable-experimental-feature BorrowAndMutateAccessors -disable-experimental-parser-round-trip | %FileCheck %s
|
||||
// RUN:%target-swift-frontend -emit-silgen %s -enable-experimental-feature BorrowAndMutateAccessors | %FileCheck %s
|
||||
|
||||
// REQUIRES: swift_feature_BorrowAndMutateAccessors
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN:%target-swift-frontend -emit-silgen %s -verify -enable-experimental-feature BorrowAndMutateAccessors -disable-experimental-parser-round-trip | %FileCheck %s
|
||||
// RUN:%target-swift-frontend -emit-silgen %s -verify -enable-experimental-feature BorrowAndMutateAccessors | %FileCheck %s
|
||||
|
||||
// REQUIRES: swift_feature_BorrowAndMutateAccessors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user