提交 70b00917 编写于 作者: E Erick Tryzelaar 提交者: Graydon Hoare

Remove support for expr[T] syntax.

上级 c92f5b34
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册