diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-27 21:55:28 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-27 21:55:28 +0800 |
commit | 1b9a90949e310428e3b6e175c4568260a222a53a (patch) | |
tree | 8535e10c384971018fb5f391236cfd5a822b2e3f /src/expand/cfg.cpp | |
parent | efcec71e53c560d8c8f5348dcb7bc11b6e4a9b78 (diff) | |
download | mrust-1b9a90949e310428e3b6e175c4568260a222a53a.tar.gz |
Expand - Remove two-pass expand
Diffstat (limited to 'src/expand/cfg.cpp')
-rw-r--r-- | src/expand/cfg.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/expand/cfg.cpp b/src/expand/cfg.cpp index bc4dfa6e..5e6da051 100644 --- a/src/expand/cfg.cpp +++ b/src/expand/cfg.cpp @@ -82,8 +82,6 @@ bool check_cfg(Span sp, const ::AST::MetaItem& mi) { class CCfgExpander: public ExpandProcMacro { - bool expand_early() const override { return true; } - ::std::unique_ptr<TokenStream> expand(const Span& sp, const ::AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override { if( ident != "" ) { @@ -107,7 +105,7 @@ class CCfgExpander: class CCfgHandler: public ExpandDecorator { - AttrStage stage() const override { return AttrStage::EarlyPre; } + AttrStage stage() const override { return AttrStage::Pre; } void handle(const Span& sp, const AST::MetaItem& mi, ::AST::Crate& crate, AST::MacroInvocation& mac) const override { |