about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Holk <eric.holk@gmail.com>2012-05-24 15:19:10 -0700
committerEric Holk <eric.holk@gmail.com>2012-05-24 15:19:10 -0700
commit433e4ca5f166f2e3322b90bc53f32bc44d534640 (patch)
treef6fe289471776c6090d7de5d11d5b061c921feb3
parent8b12892ca2906d7a43f92105563764c9ca4b33c4 (diff)
downloadrust-433e4ca5f166f2e3322b90bc53f32bc44d534640.tar.gz
rust-433e4ca5f166f2e3322b90bc53f32bc44d534640.zip
Fixing method call issue in parser.
-rw-r--r--src/librustsyntax/parse/parser.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/librustsyntax/parse/parser.rs b/src/librustsyntax/parse/parser.rs
index 3814a7ada00..eb98c2bf592 100644
--- a/src/librustsyntax/parse/parser.rs
+++ b/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))]; }
             }
         }