Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar/generic_args.rs')
-rw-r--r--crates/parser/src/grammar/generic_args.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/crates/parser/src/grammar/generic_args.rs b/crates/parser/src/grammar/generic_args.rs
index 4cac04a32a..e583a4de71 100644
--- a/crates/parser/src/grammar/generic_args.rs
+++ b/crates/parser/src/grammar/generic_args.rs
@@ -76,7 +76,6 @@ fn generic_arg(p: &mut Parser<'_>) -> bool {
}
}
}
- IDENT if p.nth(1) == T!['('] && p.nth_at(2, T![..]) => return_type_arg(p),
_ if p.at_ts(types::TYPE_FIRST) => type_arg(p),
_ => return false,
}
@@ -140,20 +139,3 @@ fn type_arg(p: &mut Parser<'_>) {
types::type_(p);
m.complete(p, TYPE_ARG);
}
-
-// test return_type_arg
-// type T = S<foo(..): Send>;
-pub(super) fn return_type_arg(p: &mut Parser<'_>) {
- let m = p.start();
- p.expect(IDENT);
- p.expect(T!['(']);
- p.expect(T![..]);
- p.expect(T![')']);
- if !p.at(T![:]) {
- p.error("expected :");
- m.abandon(p);
- return;
- }
- generic_params::bounds(p);
- m.complete(p, RETURN_TYPE_ARG);
-}