We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92f5b3 commit 70b0091Copy full SHA for 70b0091
src/comp/syntax/parse/parser.rs
@@ -780,17 +780,7 @@ fn parse_path(p: &parser) -> ast::path {
780
fn parse_path_and_ty_param_substs(p: &parser) -> ast::path {
781
let lo = p.get_lo_pos();
782
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 {
+ if p.peek() == token::MOD_SEP {
794
p.bump();
795
796
let seq = parse_seq_lt_gt(some(token::COMMA), bind parse_ty(_, false),
0 commit comments