summaryrefslogtreecommitdiff
path: root/src/expand
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-06-06 21:40:25 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-06-06 21:40:25 +0800
commitb73112ba036364195169f243e573cf61442dcc7e (patch)
treefb4d0b1f2bed2c673253a2e425605c5246e531e7 /src/expand
parent733f1ba26d61745f8daa21ea9feb8c0752ec71fa (diff)
downloadmrust-b73112ba036364195169f243e573cf61442dcc7e.tar.gz
Expand proc_macro - Fix for string interning
Diffstat (limited to 'src/expand')
-rw-r--r--src/expand/proc_macro.cpp4
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();