diff options
author | Aleksey Kladov <[email protected]> | 2018-09-04 10:25:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-04 10:25:23 +0100 |
commit | e44a6bcc8208f9d906febf9278120b75a6af67f9 (patch) | |
tree | 0b6a9e8d5c9527d9bd1ed266213d591ea957623c /crates/libsyntax2/src/grammar/type_params.rs | |
parent | 3a017aaa52fc41316b5dd2cd90b5171ca869697a (diff) |
for types in bounds
Diffstat (limited to 'crates/libsyntax2/src/grammar/type_params.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/type_params.rs | 18 |
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); |