From c1bf1f88ad4199e48d2615dbf9479e602b5e9eff Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 17 Jun 2021 21:15:35 +0200 Subject: Complete `repr` attribute parameters --- crates/parser/src/grammar/params.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/parser/src/grammar') 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> { if !matches!( (p.current(), la1, la2, la3), (T![&], T![self], _, _) - | (T![&], T![mut], T![self], _) - | (T![&], LIFETIME_IDENT, T![self], _) + | (T![&], T![mut] | LIFETIME_IDENT, T![self], _) | (T![&], LIFETIME_IDENT, T![mut], T![self]) ) { return Err(m); -- cgit v1.2.3