diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-07 09:15:53 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-07 09:15:53 +0800 |
commit | 1b730b5e4e1aff438d07f60e0790894ee125fca3 (patch) | |
tree | 69c031e4d85485acd3dec43b828eba26c2972d85 /src | |
parent | 6b3870cb04010f656aa6d20a0574df993a766511 (diff) | |
download | mrust-1b730b5e4e1aff438d07f60e0790894ee125fca3.tar.gz |
Expand - Handle another rustc internal macro
Diffstat (limited to 'src')
-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) |