diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2011-08-11 09:03:45 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-08-16 15:05:57 -0700 |
| commit | c92f5b34d5603de89570d6ab9978469a17335eed (patch) | |
| tree | 65f254412f805b3351eb6dac1858764eff40b8db /src/comp/syntax/parse | |
| parent | adb9cde39977d06ebfb9ec76f108103545c80acb (diff) | |
| download | rust-c92f5b34d5603de89570d6ab9978469a17335eed.tar.gz rust-c92f5b34d5603de89570d6ab9978469a17335eed.zip | |
Remove support for foo[T] declaration syntax.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 3591322c1cf..20565158a4e 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1765,11 +1765,7 @@ fn parse_ty_param(p: &parser) -> ast::ty_param { fn parse_ty_params(p: &parser) -> [ast::ty_param] { let ty_params: [ast::ty_param] = ~[]; - if p.peek() == token::LBRACKET { - ty_params = - parse_seq(token::LBRACKET, token::RBRACKET, some(token::COMMA), - parse_ty_param, p).node; - } else if p.peek() == token::LT { + if p.peek() == token::LT { p.bump(); ty_params = parse_seq_to_gt(some(token::COMMA), parse_ty_param, p); } |
