From 3635480b157389ce3e65bb5b9ccd0ced8e21e1c7 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 24 Feb 2013 10:20:24 -0800 Subject: libsyntax: change expect to take &token::Token --- src/libsyntax/ext/pipes/parse_proto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/pipes/parse_proto.rs b/src/libsyntax/ext/pipes/parse_proto.rs index 66feb7cc753..07db67d3173 100644 --- a/src/libsyntax/ext/pipes/parse_proto.rs +++ b/src/libsyntax/ext/pipes/parse_proto.rs @@ -39,7 +39,7 @@ pub impl proto_parser for parser::Parser { let id = self.parse_ident(); let name = *self.interner.get(id); - self.expect(token::COLON); + self.expect(&token::COLON); let dir = match *self.token { token::IDENT(n, _) => self.interner.get(n), _ => fail!() @@ -79,7 +79,7 @@ pub impl proto_parser for parser::Parser { } else { ~[] }; - self.expect(token::RARROW); + self.expect(&token::RARROW); let next = match *self.token { token::IDENT(_, _) => { -- cgit 1.4.1-3-g733a5