diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-09-02 02:50:59 +0200 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-09-02 02:51:21 +0200 |
| commit | 857f8673206fd2d8803e02c68cdeb38e26b95df0 (patch) | |
| tree | 7cfb11be2843774595371087f2829d0e2e830fe2 /src/libsyntax/ext/tt/macro_parser.rs | |
| parent | 1f4aba8cbf7caa3a82b52b6f171221ed6067eed5 (diff) | |
| download | rust-857f8673206fd2d8803e02c68cdeb38e26b95df0.tar.gz rust-857f8673206fd2d8803e02c68cdeb38e26b95df0.zip | |
Renamed syntax::ast::ident -> Ident
Diffstat (limited to 'src/libsyntax/ext/tt/macro_parser.rs')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index bc4b1010943..7a9e916421c 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -11,7 +11,7 @@ // Earley-like parser for macros. use ast; -use ast::{matcher, match_tok, match_seq, match_nonterminal, ident}; +use ast::{matcher, match_tok, match_seq, match_nonterminal, Ident}; use codemap::{BytePos, mk_sp}; use codemap; use parse::lexer::*; //resolve bug? @@ -189,9 +189,9 @@ pub enum named_match { pub type earley_item = ~MatcherPos; pub fn nameize(p_s: @mut ParseSess, ms: &[matcher], res: &[@named_match]) - -> HashMap<ident,@named_match> { + -> HashMap<Ident,@named_match> { fn n_rec(p_s: @mut ParseSess, m: &matcher, res: &[@named_match], - ret_val: &mut HashMap<ident, @named_match>) { + ret_val: &mut HashMap<Ident, @named_match>) { match *m { codemap::Spanned {node: match_tok(_), _} => (), codemap::Spanned {node: match_seq(ref more_ms, _, _, _, _), _} => { @@ -216,7 +216,7 @@ pub fn nameize(p_s: @mut ParseSess, ms: &[matcher], res: &[@named_match]) } pub enum parse_result { - success(HashMap<ident, @named_match>), + success(HashMap<Ident, @named_match>), failure(codemap::Span, ~str), error(codemap::Span, ~str) } @@ -226,7 +226,7 @@ pub fn parse_or_else( cfg: ast::CrateConfig, rdr: @mut reader, ms: ~[matcher] -) -> HashMap<ident, @named_match> { +) -> HashMap<Ident, @named_match> { match parse(sess, cfg, rdr, ms) { success(m) => m, failure(sp, str) => sess.span_diagnostic.span_fatal(sp, str), |
