diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/type_params.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/type_params.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/type_params.rs b/crates/libsyntax2/src/grammar/type_params.rs index a97eeb142..3fb4bd356 100644 --- a/crates/libsyntax2/src/grammar/type_params.rs +++ b/crates/libsyntax2/src/grammar/type_params.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | use super::*; | 1 | use super::*; |
2 | 2 | ||
3 | pub(super) fn type_param_list(p: &mut Parser) { | 3 | pub(super) fn opt_type_param_list(p: &mut Parser) { |
4 | if !p.at(L_ANGLE) { | 4 | if !p.at(L_ANGLE) { |
5 | return; | 5 | return; |
6 | } | 6 | } |
@@ -96,7 +96,7 @@ pub(super) fn bounds_without_colon(p: &mut Parser) { | |||
96 | // T: Clone + Copy + 'static, | 96 | // T: Clone + Copy + 'static, |
97 | // Iterator::Item: 'a, | 97 | // Iterator::Item: 'a, |
98 | // {} | 98 | // {} |
99 | pub(super) fn where_clause(p: &mut Parser) { | 99 | pub(super) fn opt_where_clause(p: &mut Parser) { |
100 | if !p.at(WHERE_KW) { | 100 | if !p.at(WHERE_KW) { |
101 | return; | 101 | return; |
102 | } | 102 | } |