Skip to content

Commit 0a88e4d

Browse files
pcwaltonhuonw
authored andcommitted
---
yaml --- r: 107859 b: refs/heads/dist-snap c: 52eeed2 h: refs/heads/master i: 107857: 085b115 107855: b0c498a v: v3
1 parent c8b09e9 commit 0a88e4d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: c5cbfe89f8d4f98e557e8193f1378d3b60722752
9+
refs/heads/dist-snap: 52eeed2f73652014cde448b5dc969c7299a1fbcb
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libsyntax/ext/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::unstable::dynamic_lib::DynamicLibrary;
3131
// ast::MacInvocTT.
3232

3333
pub struct MacroDef {
34-
name: @str,
34+
name: ~str,
3535
ext: SyntaxExtension
3636
}
3737

branches/dist-snap/src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use ext::tt::macro_parser::{parse, parse_or_else};
2121
use parse::lexer::{new_tt_reader, Reader};
2222
use parse::parser::Parser;
2323
use parse::attr::ParserAttr;
24-
use parse::token::{get_ident_interner, special_idents, gensym_ident, ident_to_str};
24+
use parse::token::{get_ident_interner, special_idents, gensym_ident};
2525
use parse::token::{FAT_ARROW, SEMI, NtMatchers, NtTT, EOF};
2626
use parse::token;
2727
use print;
@@ -231,7 +231,7 @@ pub fn add_new_extension(cx: &mut ExtCtxt,
231231
};
232232

233233
return MRDef(MacroDef {
234-
name: ident_to_str(&name),
234+
name: token::get_ident(name.name).get().to_str(),
235235
ext: NormalTT(exp, Some(sp))
236236
});
237237
}

0 commit comments

Comments
 (0)