diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-08-12 10:39:58 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-08-16 15:05:57 -0700 |
| commit | 70b009178cf050d5bb78655ee46dfd8271f9eb79 (patch) | |
| tree | 264494961445754e353e11d9e2d4dd2505491636 /src/comp/syntax/parse/parser.rs | |
| parent | c92f5b34d5603de89570d6ab9978469a17335eed (diff) | |
| download | rust-70b009178cf050d5bb78655ee46dfd8271f9eb79.tar.gz rust-70b009178cf050d5bb78655ee46dfd8271f9eb79.zip | |
Remove support for expr[T] syntax.
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 20565158a4e..267308c1c04 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -780,17 +780,7 @@ fn parse_path(p: &parser) -> ast::path { fn parse_path_and_ty_param_substs(p: &parser) -> ast::path { let lo = p.get_lo_pos(); let path = parse_path(p); - if p.peek() == token::LBRACKET { - let seq = - parse_seq(token::LBRACKET, token::RBRACKET, some(token::COMMA), - bind parse_ty(_, false), p); - let hi = seq.span.hi; - path = - spanned(lo, hi, - {global: path.node.global, - idents: path.node.idents, - types: seq.node}); - } else if p.peek() == token::MOD_SEP { + if p.peek() == token::MOD_SEP { p.bump(); let seq = parse_seq_lt_gt(some(token::COMMA), bind parse_ty(_, false), |
