summaryrefslogtreecommitdiff
path: root/src/expand
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-25 23:16:23 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-25 23:16:23 +0800
commitdd7680bc0d53f02e4b96b2b3896ebea16742c9bb (patch)
tree1c28b4c3a9e5493d8f4ca23c28e438497b385c4a /src/expand
parent677cfbea5c6652e96fffd70a2bcd7078a42b4387 (diff)
downloadmrust-dd7680bc0d53f02e4b96b2b3896ebea16742c9bb.tar.gz
Parse - Use interpolated macro fragments instead of captured TTs
Diffstat (limited to 'src/expand')
-rw-r--r--src/expand/format_args.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/format_args.cpp b/src/expand/format_args.cpp
index ab320e3f..1b8dfb54 100644
--- a/src/expand/format_args.cpp
+++ b/src/expand/format_args.cpp
@@ -19,8 +19,8 @@ class CFormatArgsExpander:
if( ident != "" )
ERROR(sp, E0000, "format_args! doesn't take an ident");
- GET_CHECK_TOK(tok, lex, TOK_STRING);
- auto format_string = mv$(tok.str());
+ auto n = Parse_ExprVal(lex);
+ auto format_string = dynamic_cast<AST::ExprNode_String&>(*n).m_value;
// TODO: Interpolated expression "tokens"
::std::map< ::std::string, TokenTree> named_args;