diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-26 12:01:57 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-26 12:01:57 +0800 |
commit | b2e0f5c122b64fe31ba935f9cb5c6a397fd8f6ab (patch) | |
tree | ac8345ef30f03ef950b0cac61f299afd34959e4f /src/ast/macro.hpp | |
parent | 03d5e68698de0da77ee97775578822b55c6148ef (diff) | |
download | mrust-b2e0f5c122b64fe31ba935f9cb5c6a397fd8f6ab.tar.gz |
Expand - Pass ownership of the input TT to macro_rules! expand
Diffstat (limited to 'src/ast/macro.hpp')
-rw-r--r-- | src/ast/macro.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast/macro.hpp b/src/ast/macro.hpp index 2798ad4a..e68d85ac 100644 --- a/src/ast/macro.hpp +++ b/src/ast/macro.hpp @@ -51,6 +51,7 @@ public: const ::std::string& input_ident() const { return m_ident; } const TokenTree& input_tt() const { return m_input; } + TokenTree& input_tt() { return m_input; } friend ::std::ostream& operator<<(::std::ostream& os, const MacroInvocation& x) { os << x.m_attrs; |