mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Swiftify: Fix an unused variable warning.
This commit is contained in:
@@ -1758,7 +1758,7 @@ func parseProtocolMacroParam(
|
||||
if let methodSyntax = DeclSyntax("\(raw: methodSignature)").as(FunctionDeclSyntax.self) {
|
||||
name = methodSyntax.name.trimmed.text
|
||||
}
|
||||
for (tmp, method) in methods where method.name.trimmed.text == name {
|
||||
for (_, method) in methods where method.name.trimmed.text == name {
|
||||
notes.append(Note(node: Syntax(method.name), message: MacroExpansionNoteMessage("did you mean '\(method.trimmed.description)'?")))
|
||||
}
|
||||
throw DiagnosticError(
|
||||
|
||||
Reference in New Issue
Block a user