diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/params.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/params.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/params.rs b/crates/libsyntax2/src/grammar/params.rs index bc0cb44ba..903c25939 100644 --- a/crates/libsyntax2/src/grammar/params.rs +++ b/crates/libsyntax2/src/grammar/params.rs | |||
@@ -48,7 +48,7 @@ fn list_(p: &mut Parser, flavor: Flavor) { | |||
48 | opt_self_param(p); | 48 | opt_self_param(p); |
49 | } | 49 | } |
50 | while !p.at(EOF) && !p.at(ket) { | 50 | while !p.at(EOF) && !p.at(ket) { |
51 | if !VALUE_PARAMETER_FIRST.contains(p.current()) { | 51 | if !p.at_ts(VALUE_PARAMETER_FIRST) { |
52 | p.error("expected value parameter"); | 52 | p.error("expected value parameter"); |
53 | break; | 53 | break; |
54 | } | 54 | } |