summary refs log tree commit diff
path: root/src/libsyntax/parse/attr.rs
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-02-24 10:20:24 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-02-25 22:30:32 -0800
commit3635480b157389ce3e65bb5b9ccd0ced8e21e1c7 (patch)
tree665341932326c25c37d36f66c320ef76f7e18b76 /src/libsyntax/parse/attr.rs
parentf3965829ffd1e2eb4e2b8c4c8f151379f504ed7f (diff)
downloadrust-3635480b157389ce3e65bb5b9ccd0ced8e21e1c7.tar.gz
rust-3635480b157389ce3e65bb5b9ccd0ced8e21e1c7.zip
libsyntax: change expect to take &token::Token
Diffstat (limited to 'src/libsyntax/parse/attr.rs')
-rw-r--r--src/libsyntax/parse/attr.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs
index 87ecf6a9567..e5487eaac38 100644
--- a/src/libsyntax/parse/attr.rs
+++ b/src/libsyntax/parse/attr.rs
@@ -61,15 +61,15 @@ impl parser_attr for Parser {
 
     fn parse_attribute(style: ast::attr_style) -> ast::attribute {
         let lo = self.span.lo;
-        self.expect(token::POUND);
+        self.expect(&token::POUND);
         return self.parse_attribute_naked(style, lo);
     }
 
     fn parse_attribute_naked(style: ast::attr_style, lo: BytePos) ->
         ast::attribute {
-        self.expect(token::LBRACKET);
+        self.expect(&token::LBRACKET);
         let meta_item = self.parse_meta_item();
-        self.expect(token::RBRACKET);
+        self.expect(&token::RBRACKET);
         let mut hi = self.span.hi;
         return spanned(lo, hi, ast::attribute_ { style: style,
                                                  value: meta_item,