diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-24 10:20:24 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-25 22:30:32 -0800 |
| commit | 3635480b157389ce3e65bb5b9ccd0ced8e21e1c7 (patch) | |
| tree | 665341932326c25c37d36f66c320ef76f7e18b76 /src/libsyntax/ext | |
| parent | f3965829ffd1e2eb4e2b8c4c8f151379f504ed7f (diff) | |
| download | rust-3635480b157389ce3e65bb5b9ccd0ced8e21e1c7.tar.gz rust-3635480b157389ce3e65bb5b9ccd0ced8e21e1c7.zip | |
libsyntax: change expect to take &token::Token
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/pipes/parse_proto.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(_, _) => { |
