summary refs log tree commit diff
path: root/src/libsyntax/parse/attr.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-02-21 18:12:13 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-02-22 16:09:16 -0800
commit934c938f90662522c4a8a86bd58d7618207f5c2a (patch)
tree1c8d30efe22d539824b9255442aeb898a25ac7da /src/libsyntax/parse/attr.rs
parent77dc3ad810d4887d1148d2b0d8e7807ecadaea3e (diff)
downloadrust-934c938f90662522c4a8a86bd58d7618207f5c2a.tar.gz
rust-934c938f90662522c4a8a86bd58d7618207f5c2a.zip
libsyntax: De-mut the parser. rs=demuting
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
-rw-r--r--src/libsyntax/parse/attr.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs
index 4f64d7bed31..c0c97a0b9eb 100644
--- a/src/libsyntax/parse/attr.rs
+++ b/src/libsyntax/parse/attr.rs
@@ -37,7 +37,7 @@ impl parser_attr for Parser {
     fn parse_outer_attributes() -> ~[ast::attribute] {
         let mut attrs: ~[ast::attribute] = ~[];
         loop {
-            match copy self.token {
+            match *self.token {
               token::POUND => {
                 if self.look_ahead(1u) != token::LBRACKET {
                     break;
@@ -90,14 +90,14 @@ impl parser_attr for Parser {
         let mut inner_attrs: ~[ast::attribute] = ~[];
         let mut next_outer_attrs: ~[ast::attribute] = ~[];
         loop {
-            match copy self.token {
+            match *self.token {
               token::POUND => {
                 if self.look_ahead(1u) != token::LBRACKET {
                     // This is an extension
                     break;
                 }
                 let attr = self.parse_attribute(ast::attr_inner);
-                if self.token == token::SEMI {
+                if *self.token == token::SEMI {
                     self.bump();
                     inner_attrs += ~[attr];
                 } else {
@@ -131,7 +131,7 @@ impl parser_attr for Parser {
     fn parse_meta_item() -> @ast::meta_item {
         let lo = self.span.lo;
         let name = self.id_to_str(self.parse_ident());
-        match self.token {
+        match *self.token {
             token::EQ => {
                 self.bump();
                 let lit = self.parse_lit();
@@ -157,7 +157,7 @@ impl parser_attr for Parser {
     }
 
     fn parse_optional_meta() -> ~[@ast::meta_item] {
-        match self.token {
+        match *self.token {
           token::LPAREN => return self.parse_meta_seq(),
           _ => return ~[]
         }