diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-10-29 12:44:01 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-10-29 12:44:01 +0800 |
commit | 94ad750f1727a977b5e5e2b094527e6c449df41d (patch) | |
tree | 53dfa784a3beb7dc2d60b13aa6678dfe6b9c82e8 /src/expand/concat.cpp | |
parent | 69311c5199292cd4b00b5c82fe8096d93b7e6465 (diff) | |
download | mrust-94ad750f1727a977b5e5e2b094527e6c449df41d.tar.gz |
Expand - Add parent spans to TTStream[O]
Diffstat (limited to 'src/expand/concat.cpp')
-rw-r--r-- | src/expand/concat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/concat.cpp b/src/expand/concat.cpp index a08e9168..29a066df 100644 --- a/src/expand/concat.cpp +++ b/src/expand/concat.cpp @@ -20,7 +20,7 @@ class CConcatExpander: { Token tok; - auto lex = TTStream(tt); + auto lex = TTStream(sp, tt); if( ident != "" ) ERROR(sp, E0000, "format_args! doesn't take an ident"); @@ -64,7 +64,7 @@ class CConcatExpander: if( tok.type() != TOK_EOF ) throw ParseError::Unexpected(lex, tok, {TOK_COMMA, TOK_EOF}); - return box$( TTStreamO(TokenTree(Token(TOK_STRING, mv$(rv)))) ); + return box$( TTStreamO(sp, TokenTree(Token(TOK_STRING, mv$(rv)))) ); } }; |