diff options
Diffstat (limited to 'src/expand/rustc_diagnostics.cpp')
-rw-r--r-- | src/expand/rustc_diagnostics.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/expand/rustc_diagnostics.cpp b/src/expand/rustc_diagnostics.cpp index b5337d26..2deaa9a3 100644 --- a/src/expand/rustc_diagnostics.cpp +++ b/src/expand/rustc_diagnostics.cpp @@ -25,7 +25,16 @@ class CExpanderDiagnosticUsed: return box$( TTStreamO(TokenTree()) ); } }; +class CExpanderBuildDiagnosticArray: + public ExpandProcMacro +{ + ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override + { + return box$( TTStreamO(TokenTree()) ); + } +}; STATIC_MACRO("__register_diagnostic", CExpanderRegisterDiagnostic) STATIC_MACRO("__diagnostic_used", CExpanderDiagnosticUsed) +STATIC_MACRO("__build_diagnostic_array", CExpanderBuildDiagnosticArray) |