File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/Macros/Sources/SwiftMacros Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ struct CxxSpanThunkBuilder: BoundsCheckedThunkBuilder {
314
314
" unable to desugar type with name ' \( typeName) ' " , node: node)
315
315
}
316
316
317
- let parsedDesugaredType = try TypeSyntax ( " \( raw: desugaredType) " )
317
+ let parsedDesugaredType = TypeSyntax ( " \( raw: desugaredType) " )
318
318
types [ index] = TypeSyntax ( IdentifierTypeSyntax ( name: " Span " ,
319
319
genericArgumentClause: parsedDesugaredType. as ( IdentifierTypeSyntax . self) !. genericArgumentClause) )
320
320
return try base. buildFunctionSignature ( types, variant)
@@ -679,7 +679,7 @@ public struct SwiftifyImportMacro: PeerMacro {
679
679
}
680
680
dict [ key. representedLiteralValue!] = value. representedLiteralValue!
681
681
}
682
- default :
682
+ @ unknown default :
683
683
throw DiagnosticError ( " unknown dictionary literal " , node: dictExpr)
684
684
}
685
685
return dict
You can’t perform that action at this time.
0 commit comments