Skip to content

Commit 8397f1d

Browse files
pcwaltonhuonw
authored andcommitted
---
yaml --- r: 102532 b: refs/heads/auto c: 52eeed2 h: refs/heads/master v: v3
1 parent ae54909 commit 8397f1d

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: c5cbfe89f8d4f98e557e8193f1378d3b60722752
16+
refs/heads/auto: 52eeed2f73652014cde448b5dc969c7299a1fbcb
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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/auto/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)