diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-19 18:21:15 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-19 18:21:15 +0800 |
commit | e8189c1a3fc5c880b00b772cedaeeb5aa16d0ce0 (patch) | |
tree | 12905f647e6e45802e934b16fb4e9967a3d476b9 /src/expand/macro_rules.cpp | |
parent | e5123b5c5b13fb7b05f8d020e4d8e4dedba5ca73 (diff) | |
download | mrust-e8189c1a3fc5c880b00b772cedaeeb5aa16d0ce0.tar.gz |
Rust source update, fix a few parse issues
Diffstat (limited to 'src/expand/macro_rules.cpp')
-rw-r--r-- | src/expand/macro_rules.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expand/macro_rules.cpp b/src/expand/macro_rules.cpp index 05bf291c..638b9ddd 100644 --- a/src/expand/macro_rules.cpp +++ b/src/expand/macro_rules.cpp @@ -117,7 +117,9 @@ class CMacroExportHandler: void handle(const Span& sp, const AST::MetaItem& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, AST::Item& i) const override { - if( i.is_MacroInv() ) { + if( i.is_None() ) { + } + else if( i.is_MacroInv() ) { const auto& mac = i.as_MacroInv(); if( mac.name() != "macro_rules" ) { ERROR(sp, E0000, "#[macro_export] is only valid on macro_rules!"); |