diff options
Diffstat (limited to 'src/parser/grammar/patterns.rs')
-rw-r--r-- | src/parser/grammar/patterns.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/parser/grammar/patterns.rs b/src/parser/grammar/patterns.rs index a5d13a124..7216807fd 100644 --- a/src/parser/grammar/patterns.rs +++ b/src/parser/grammar/patterns.rs | |||
@@ -43,11 +43,8 @@ fn ref_pat(p: &mut Parser) { | |||
43 | // } | 43 | // } |
44 | fn bind_pat(p: &mut Parser) { | 44 | fn bind_pat(p: &mut Parser) { |
45 | let m = p.start(); | 45 | let m = p.start(); |
46 | if p.eat(REF_KW) { | 46 | p.eat(REF_KW); |
47 | p.eat(MUT_KW); | 47 | p.eat(MUT_KW); |
48 | } else { | ||
49 | p.eat(MUT_KW); | ||
50 | } | ||
51 | name(p); | 48 | name(p); |
52 | if p.eat(AT) { | 49 | if p.eat(AT) { |
53 | pattern(p); | 50 | pattern(p); |