Skip to content

Commit 7e604a6

Browse files
authored
Merge pull request #1932 from hborla/5.9-remove-conformance-macros
[5.9][Macros] Update macro plugin test to replace conformance macros with extension macros.
2 parents 4e9217a + b428f35 commit 7e604a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lit_tests/compiler_plugin_basic.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ macro PeerWithSuffix() = #externalMacro(module: "ExamplePlugin", type: "PeerValu
3131
@attached(memberAttribute)
3232
macro MemberDeprecated() = #externalMacro(module: "ExamplePlugin", type: "MemberDeprecatedMacro")
3333

34-
@attached(conformance)
34+
@attached(extension, conformances: Equatable)
3535
macro Equatable() = #externalMacro(module: "ExamplePlugin", type: "EquatableConformanceMacro")
3636

3737
@attached(accessor)
@@ -77,7 +77,7 @@ struct MyStruct {
7777
// CHECK-NEXT: @available(*, deprecated)
7878
// CHECK-NEXT: ------------------------------
7979

80-
// CHECK: @__swiftmacro_7TestApp8MyStruct9EquatablefMc_.swift
80+
// CHECK: @__swiftmacro_7TestApp8MyStruct9EquatablefMe_.swift
8181
// CHECK-NEXT: ------------------------------
8282
// CHECK-NEXT: extension MyStruct: Equatable {
8383
// CHECK-NEXT: }

0 commit comments

Comments
 (0)