swift
96b81f3a - [Macros] Improve diagnostics for missing macro implementation (#65814)

Commit
2 years ago
[Macros] Improve diagnostics for missing macro implementation (#65814) We should no longer say "macro implementation must be provided via '-load-plugin-library'" as there are multiple ways to pick up a macro dependency. Here's an improved version: > warning: external macro implementation type 'MissingModule.MissingType' could not be found for macro 'missingMacro1'; the type must be public and provided by a macro target in a Swift package, or via '-plugin-path' or '-load-plugin-library'
Author
Committer
Parents
  • include/swift/AST
    • File
      DiagnosticsSema.def
  • test/Macros
    • File
      attached_macros_diags.swift
    • File
      external-macro-without-decl.swift
    • File
      macros_diagnostics.swift
    • File
      parsing.swift