Skip to content
This repository
Browse code

Fixing method call issue in parser.

  • Loading branch information...
commit 433e4ca5f166f2e3322b90bc53f32bc44d534640 1 parent 8b12892
Eric Holk authored May 24, 2012

Showing 1 changed file with 3 additions and 5 deletions. Show diff stats Hide diff stats

  1. 8  src/librustsyntax/parse/parser.rs
8  src/librustsyntax/parse/parser.rs
@@ -1676,11 +1676,9 @@ class parser {
1676 1676
         let ident = self.parse_ident();
1677 1677
         if self.eat(token::COLON) {
1678 1678
             while self.token != token::COMMA && self.token != token::GT {
1679  
-                if self.eat_keyword(self, "send") { bounds += [bound_send]; }
1680  
-                else if self.eat_keyword(self, "copy")
1681  
-                    { bounds += [bound_copy]; }
1682  
-                else if self.eat_keyword(self, "const")
1683  
-                    { bounds += [bound_const]; }
  1679
+                if self.eat_keyword("send") { bounds += [bound_send]; }
  1680
+                else if self.eat_keyword("copy") { bounds += [bound_copy]; }
  1681
+                else if self.eat_keyword("const") { bounds += [bound_const]; }
1684 1682
                 else { bounds += [bound_iface(self.parse_ty(false))]; }
1685 1683
             }
1686 1684
         }

0 notes on commit 433e4ca

Please sign in to comment.
Something went wrong with that request. Please try again.