libsyntax: De-@str MacroDef
This commit is contained in:
parent
c5cbfe89f8
commit
52eeed2f73
2 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ use std::unstable::dynamic_lib::DynamicLibrary;
|
|||
// ast::MacInvocTT.
|
||||
|
||||
pub struct MacroDef {
|
||||
name: @str,
|
||||
name: ~str,
|
||||
ext: SyntaxExtension
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use ext::tt::macro_parser::{parse, parse_or_else};
|
|||
use parse::lexer::{new_tt_reader, Reader};
|
||||
use parse::parser::Parser;
|
||||
use parse::attr::ParserAttr;
|
||||
use parse::token::{get_ident_interner, special_idents, gensym_ident, ident_to_str};
|
||||
use parse::token::{get_ident_interner, special_idents, gensym_ident};
|
||||
use parse::token::{FAT_ARROW, SEMI, NtMatchers, NtTT, EOF};
|
||||
use parse::token;
|
||||
use print;
|
||||
|
|
@ -231,7 +231,7 @@ pub fn add_new_extension(cx: &mut ExtCtxt,
|
|||
};
|
||||
|
||||
return MRDef(MacroDef {
|
||||
name: ident_to_str(&name),
|
||||
name: token::get_ident(name.name).get().to_str(),
|
||||
ext: NormalTT(exp, Some(sp))
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue