about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-08-15 18:46:55 -0700
committerBrian Anderson <banderson@mozilla.com>2012-08-17 10:13:45 -0700
commit3ab4b014cfaf6dff5b450f4a1772e9993550fe38 (patch)
treecff9c62a771f5e86819095f9cfa348fd935ba207 /src/libsyntax/parse/parser.rs
parent6d7b143036e1d61c8f58864db3445d2a0ae4ad11 (diff)
downloadrust-3ab4b014cfaf6dff5b450f4a1772e9993550fe38.tar.gz
rust-3ab4b014cfaf6dff5b450f4a1772e9993550fe38.zip
Remove the class keyword
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index c714fe59b13..c1e5de48741 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -180,7 +180,7 @@ pure fn maybe_append(+lhs: ~[attribute], rhs: option<~[attribute]>)
 
 /* ident is handled by common.rs */
 
-class parser {
+struct parser {
     let sess: parse_sess;
     let cfg: crate_cfg;
     let file_type: file_type;
@@ -3201,8 +3201,7 @@ class parser {
             return iovi_item(self.mk_item(lo, self.last_span.hi, ident, item_,
                                           visibility,
                                           maybe_append(attrs, extra_attrs)));
-        } else if items_allowed &&
-                (self.eat_keyword(~"class") || self.eat_keyword(~"struct")) {
+        } else if items_allowed && self.eat_keyword(~"struct") {
             let (ident, item_, extra_attrs) = self.parse_item_class();
             return iovi_item(self.mk_item(lo, self.last_span.hi, ident, item_,
                                           visibility,