From 3bd1f32cd945fab63777b71ef76f23d758e2904c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 7 Sep 2012 14:52:28 -0700 Subject: Convert all kind bounds to camel case. Remove send, owned keywords. --- src/libsyntax/parse/parser.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 03a4c016b50..a38cc701dc3 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2278,15 +2278,7 @@ struct parser { let mut bounds = ~[]; if self.eat(token::COLON) { while is_ident(self.token) { - if self.eat_keyword(~"send") { - push(bounds, bound_send); } - else if self.eat_keyword(~"copy") { - push(bounds, bound_copy) } - else if self.eat_keyword(~"const") { - push(bounds, bound_const); - } else if self.eat_keyword(~"owned") { - push(bounds, bound_owned); - } else if is_ident(self.token) { + if is_ident(self.token) { // XXX: temporary until kinds become traits let maybe_bound = match self.token { token::IDENT(sid, _) => { -- cgit 1.4.1-3-g733a5