Remove support for foo[T] declaration syntax.
This commit is contained in:
parent
adb9cde399
commit
c92f5b34d5
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user