fix: don't allow two turbo-fishes in generic arguments

This commit is contained in:
Aleksey Kladov 2021-09-19 12:09:50 +03:00
parent 8ae1f9c335
commit f99bdf4cc0
2 changed files with 38 additions and 33 deletions

View file

@ -52,7 +52,6 @@ fn generic_arg(p: &mut Parser) {
// NameRef::, this is a path type
path_seg.complete(p, PATH_SEGMENT);
let qual = path.complete(p, PATH);
opt_generic_arg_list(p, false);
paths::type_path_for_qualifier(p, qual);
path_ty.complete(p, PATH_TYPE);
m.complete(p, TYPE_ARG);