Complete repr attribute parameters

This commit is contained in:
Lukas Wirth
2021-06-17 21:15:35 +02:00
parent 84507a0b9c
commit c1bf1f88ad
3 changed files with 202 additions and 2 deletions

View File

@@ -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);