Skip to content

Commit

Permalink
Fix method mode parsing bug. Closes #3191.
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Aug 13, 2012
1 parent ac4132b commit 5fd891f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,6 @@ class parser {
match copy self.token {
token::BINOP(token::AND) => {
// We need to make sure it isn't a mode.
self.bump();
if self.token_is_keyword(~"self", self.look_ahead(1)) ||
((self.token_is_keyword(~"const", self.look_ahead(1)) ||
self.token_is_keyword(~"mut", self.look_ahead(1))) &&
Expand Down

0 comments on commit 5fd891f

Please sign in to comment.