diff options
author | Lukas Wirth <[email protected]> | 2021-06-17 20:15:35 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-17 20:15:49 +0100 |
commit | c1bf1f88ad4199e48d2615dbf9479e602b5e9eff (patch) | |
tree | 1109efae3338b65e703b82b218035023569abdf9 /crates/parser | |
parent | 84507a0b9c2e8f6e632ad9ec649cd1f21a7e0887 (diff) |
Complete `repr` attribute parameters
Diffstat (limited to 'crates/parser')
-rw-r--r-- | crates/parser/src/grammar/params.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/parser/src/grammar/params.rs b/crates/parser/src/grammar/params.rs index 01ee26a53..5a78675fb 100644 --- a/crates/parser/src/grammar/params.rs +++ b/crates/parser/src/grammar/params.rs | |||
@@ -184,8 +184,7 @@ fn opt_self_param(p: &mut Parser, m: Marker) -> Result<(), Marker> { | |||
184 | if !matches!( | 184 | if !matches!( |
185 | (p.current(), la1, la2, la3), | 185 | (p.current(), la1, la2, la3), |
186 | (T![&], T![self], _, _) | 186 | (T![&], T![self], _, _) |
187 | | (T![&], T![mut], T![self], _) | 187 | | (T![&], T![mut] | LIFETIME_IDENT, T![self], _) |
188 | | (T![&], LIFETIME_IDENT, T![self], _) | ||
189 | | (T![&], LIFETIME_IDENT, T![mut], T![self]) | 188 | | (T![&], LIFETIME_IDENT, T![mut], T![self]) |
190 | ) { | 189 | ) { |
191 | return Err(m); | 190 | return Err(m); |