aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/type_params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/type_params.rs')
-rw-r--r--crates/libsyntax2/src/grammar/type_params.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/libsyntax2/src/grammar/type_params.rs b/crates/libsyntax2/src/grammar/type_params.rs
index 3fb4bd356..79bc95ce4 100644
--- a/crates/libsyntax2/src/grammar/type_params.rs
+++ b/crates/libsyntax2/src/grammar/type_params.rs
@@ -70,15 +70,15 @@ pub(super) fn bounds_without_colon(p: &mut Parser) {
70 loop { 70 loop {
71 let has_paren = p.eat(L_PAREN); 71 let has_paren = p.eat(L_PAREN);
72 p.eat(QUESTION); 72 p.eat(QUESTION);
73 if p.at(FOR_KW) { 73 match p.current() {
74 //TODO 74 LIFETIME => p.bump(),
75 } 75 FOR_KW => {
76 if p.at(LIFETIME) { 76 types::for_type(p)
77 p.bump(); 77 }
78 } else if paths::is_path_start(p) { 78 _ if paths::is_path_start(p) => {
79 paths::type_path(p); 79 types::path_type(p)
80 } else { 80 }
81 break; 81 _ => break,
82 } 82 }
83 if has_paren { 83 if has_paren {
84 p.expect(R_PAREN); 84 p.expect(R_PAREN);