Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing method call issue in parser.

  • Loading branch information...
commit 433e4ca5f166f2e3322b90bc53f32bc44d534640 1 parent 8b12892
@eholk eholk authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/librustsyntax/parse/parser.rs
View
8 src/librustsyntax/parse/parser.rs
@@ -1676,11 +1676,9 @@ class parser {
let ident = self.parse_ident();
if self.eat(token::COLON) {
while self.token != token::COMMA && self.token != token::GT {
- if self.eat_keyword(self, "send") { bounds += [bound_send]; }
- else if self.eat_keyword(self, "copy")
- { bounds += [bound_copy]; }
- else if self.eat_keyword(self, "const")
- { bounds += [bound_const]; }
+ if self.eat_keyword("send") { bounds += [bound_send]; }
+ else if self.eat_keyword("copy") { bounds += [bound_copy]; }
+ else if self.eat_keyword("const") { bounds += [bound_const]; }
else { bounds += [bound_iface(self.parse_ty(false))]; }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.