diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-06-06 21:40:25 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-06-06 21:40:25 +0800 |
commit | b73112ba036364195169f243e573cf61442dcc7e (patch) | |
tree | fb4d0b1f2bed2c673253a2e425605c5246e531e7 /src | |
parent | 733f1ba26d61745f8daa21ea9feb8c0752ec71fa (diff) | |
download | mrust-b73112ba036364195169f243e573cf61442dcc7e.tar.gz |
Expand proc_macro - Fix for string interning
Diffstat (limited to 'src')
-rw-r--r-- | src/expand/proc_macro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/proc_macro.cpp b/src/expand/proc_macro.cpp index 24cd41d9..82944857 100644 --- a/src/expand/proc_macro.cpp +++ b/src/expand/proc_macro.cpp @@ -1018,11 +1018,11 @@ Token ProcMacroInv::realGetToken_() { auto t = Lex_FindReservedWord(val); if( t != TOK_NULL ) return t; - return Token(TOK_IDENT, mv$(val)); + return Token(TOK_IDENT, RcString::new_interned(val)); } case TokenClass::Lifetime: { auto val = this->recv_bytes(); - return Token(TOK_LIFETIME, mv$(val)); + return Token(TOK_LIFETIME, RcString::new_interned(val)); } case TokenClass::String: { auto val = this->recv_bytes(); |