Skip to content

Commit 73bc2ac

Browse files
committed
Map BorrowAndMutateAccessors experimental feature to swift-syntax equivalent
1 parent 4a29867 commit 73bc2ac

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

lib/ASTGen/Sources/ASTGen/SourceFile.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ extension Parser.ExperimentalFeatures {
8686
mapFeature(.OldOwnershipOperatorSpellings, to: .oldOwnershipOperatorSpellings)
8787
mapFeature(.KeyPathWithMethodMembers, to: .keypathWithMethodMembers)
8888
mapFeature(.DefaultIsolationPerFile, to: .defaultIsolationPerFile)
89+
mapFeature(.BorrowAndMutateAccessors, to: .borrowAndMutateAccessors)
8990
}
9091
}
9192

test/SIL/borrow_accessor_e2e.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -emit-executable -enable-experimental-feature BorrowAndMutateAccessors -Xfrontend -disable-experimental-parser-round-trip -o %t/a.out
2+
// RUN: %target-build-swift %s -emit-executable -enable-experimental-feature BorrowAndMutateAccessors -o %t/a.out
33
// RUN: %target-codesign %t/a.out
44
// RUN: %target-run %t/a.out
55

test/SILGen/borrow_accessor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN:%target-swift-frontend -emit-silgen %s -enable-experimental-feature BorrowAndMutateAccessors -disable-experimental-parser-round-trip | %FileCheck %s
1+
// RUN:%target-swift-frontend -emit-silgen %s -enable-experimental-feature BorrowAndMutateAccessors | %FileCheck %s
22

33
// REQUIRES: swift_feature_BorrowAndMutateAccessors
44

test/SILGen/borrow_accessor_container.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN:%target-swift-frontend -emit-silgen %s -verify -enable-experimental-feature BorrowAndMutateAccessors -disable-experimental-parser-round-trip | %FileCheck %s
1+
// RUN:%target-swift-frontend -emit-silgen %s -verify -enable-experimental-feature BorrowAndMutateAccessors | %FileCheck %s
22

33
// REQUIRES: swift_feature_BorrowAndMutateAccessors
44

0 commit comments

Comments
 (0)