Skip to content

Commit c92f5b3

Browse files
ericktgraydon
authored andcommitted
Remove support for foo[T] declaration syntax.
1 parent adb9cde commit c92f5b3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,11 +1765,7 @@ fn parse_ty_param(p: &parser) -> ast::ty_param {
17651765

17661766
fn parse_ty_params(p: &parser) -> [ast::ty_param] {
17671767
let ty_params: [ast::ty_param] = ~[];
1768-
if p.peek() == token::LBRACKET {
1769-
ty_params =
1770-
parse_seq(token::LBRACKET, token::RBRACKET, some(token::COMMA),
1771-
parse_ty_param, p).node;
1772-
} else if p.peek() == token::LT {
1768+
if p.peek() == token::LT {
17731769
p.bump();
17741770
ty_params = parse_seq_to_gt(some(token::COMMA), parse_ty_param, p);
17751771
}

0 commit comments

Comments
 (0)