Skip to content

Commit 70b0091

Browse files
ericktgraydon
authored andcommitted
Remove support for expr[T] syntax.
1 parent c92f5b3 commit 70b0091

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -780,17 +780,7 @@ fn parse_path(p: &parser) -> ast::path {
780780
fn parse_path_and_ty_param_substs(p: &parser) -> ast::path {
781781
let lo = p.get_lo_pos();
782782
let path = parse_path(p);
783-
if p.peek() == token::LBRACKET {
784-
let seq =
785-
parse_seq(token::LBRACKET, token::RBRACKET, some(token::COMMA),
786-
bind parse_ty(_, false), p);
787-
let hi = seq.span.hi;
788-
path =
789-
spanned(lo, hi,
790-
{global: path.node.global,
791-
idents: path.node.idents,
792-
types: seq.node});
793-
} else if p.peek() == token::MOD_SEP {
783+
if p.peek() == token::MOD_SEP {
794784
p.bump();
795785

796786
let seq = parse_seq_lt_gt(some(token::COMMA), bind parse_ty(_, false),

0 commit comments

Comments
 (0)