Skip to content

Commit 4b4a2ca

Browse files
committed
Prune unused macro expansion error case
(cherry picked from commit a992586)
1 parent 60547eb commit 4b4a2ca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/SwiftCompilerPluginMessageHandling/Diagnostics.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import SwiftSyntax
1616
/// Errors in macro handing.
1717
enum MacroExpansionError {
1818
case macroTypeNotFound(PluginMessage.MacroReference)
19-
case unmatchedMacroRole
2019
case freestandingMacroSyntaxIsNotMacro
2120
case invalidExpansionMessage
2221
case invalidMacroRole(PluginMessage.MacroRole)
@@ -28,9 +27,6 @@ extension MacroExpansionError: DiagnosticMessage {
2827
case .macroTypeNotFound(let ref):
2928
return "macro type '\(ref.moduleName).\(ref.typeName)' not found when expanding macro '\(ref.name)'"
3029

31-
case .unmatchedMacroRole:
32-
return "macro doesn't conform to required macro role"
33-
3430
case .freestandingMacroSyntaxIsNotMacro:
3531
return "macro syntax couldn't be parsed"
3632

0 commit comments

Comments
 (0)