diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-01-29 13:54:06 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-01-29 13:55:30 -0800 |
| commit | 95b892c8a723ad88e868e3914c3d29a585008ac2 (patch) | |
| tree | fba7ee4b435c020fb862bda4c932f80bdbf1caf1 /src/libsyntax/ext/tt/macro_parser.rs | |
| parent | 66b07f1e5dd5767ae6aa238a00490f1493c5d443 (diff) | |
| download | rust-95b892c8a723ad88e868e3914c3d29a585008ac2.tar.gz rust-95b892c8a723ad88e868e3914c3d29a585008ac2.zip | |
libsyntax: De-export a lot of libsyntax. rs=deƫxporting
Diffstat (limited to 'src/libsyntax/ext/tt/macro_parser.rs')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 2449db17c0f..a990e53c1a7 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -189,13 +189,15 @@ fn nameize(p_s: parse_sess, ms: ~[matcher], res: ~[@named_match]) fn n_rec(p_s: parse_sess, m: matcher, res: ~[@named_match], ret_val: HashMap<ident, @named_match>) { match m { - spanned {node: match_tok(_), _} => (), - spanned {node: match_seq(ref more_ms, _, _, _, _), _} => { + ast::spanned {node: match_tok(_), _} => (), + ast::spanned {node: match_seq(ref more_ms, _, _, _, _), _} => { for (*more_ms).each() |next_m| { n_rec(p_s, *next_m, res, ret_val) }; } - spanned {node: match_nonterminal(bind_name, _, idx), span: sp} => { + ast::spanned { + node: match_nonterminal(bind_name, _, idx), span: sp + } => { if ret_val.contains_key(bind_name) { p_s.span_diagnostic.span_fatal(sp, ~"Duplicated bind name: "+ *p_s.interner.get(bind_name)) |
