Map BorrowAndMutateAccessors experimental feature to swift-syntax equivalent

This commit is contained in:
Meghana Gupta
2025-10-07 14:37:45 -07:00
parent 4a29867a7b
commit 73bc2ac0b0
4 changed files with 4 additions and 3 deletions

View File

@@ -86,6 +86,7 @@ extension Parser.ExperimentalFeatures {
mapFeature(.OldOwnershipOperatorSpellings, to: .oldOwnershipOperatorSpellings)
mapFeature(.KeyPathWithMethodMembers, to: .keypathWithMethodMembers)
mapFeature(.DefaultIsolationPerFile, to: .defaultIsolationPerFile)
mapFeature(.BorrowAndMutateAccessors, to: .borrowAndMutateAccessors)
}
}

View File

@@ -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

View File

@@ -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

View File

@@ -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