diff options
| author | Eric Holk <eric.holk@gmail.com> | 2012-07-05 23:04:56 -0700 |
|---|---|---|
| committer | Eric Holk <eric.holk@gmail.com> | 2012-07-06 10:42:40 -0700 |
| commit | fa4134611dfc54e117f196644d30948a75b7b9eb (patch) | |
| tree | a53b85b9b44bcdcf80bbe2a55234c80ad0680fac /src/libsyntax/ext/tt | |
| parent | 6806aa0e66028a218de96edd72b11e0ffa4de4e2 (diff) | |
| download | rust-fa4134611dfc54e117f196644d30948a75b7b9eb.tar.gz rust-fa4134611dfc54e117f196644d30948a75b7b9eb.zip | |
Fixing an infinite type, updating code to match new Early parser, remembering to add protocol parser.
Diffstat (limited to 'src/libsyntax/ext/tt')
| -rw-r--r-- | src/libsyntax/ext/tt/earley_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/earley_parser.rs b/src/libsyntax/ext/tt/earley_parser.rs index 731d79573e7..191da586ce5 100644 --- a/src/libsyntax/ext/tt/earley_parser.rs +++ b/src/libsyntax/ext/tt/earley_parser.rs @@ -272,7 +272,7 @@ fn parse_nt(p: parser, name: str) -> whole_nt { + token::to_str(*p.reader.interner(), copy p.token)) } } } "path" { token::w_path(p.parse_path_with_tps(false)) } - "tt" { token::w_tt(p.parse_token_tree()) } + "tt" { token::w_tt(@p.parse_token_tree()) } _ { p.fatal("Unsupported builtin nonterminal parser: " + name)} } } |
