From 8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Tue, 4 Jun 2013 15:14:56 -0700 Subject: Clean up a handful of build warnings. --- src/libsyntax/parse/common.rs | 2 +- src/libsyntax/parse/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 9fb69821953..6027d3b07f2 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -49,7 +49,7 @@ pub fn seq_sep_none() -> SeqSep { // maps any token back to a string. not necessary if you know it's // an identifier.... -pub fn token_to_str(reader: @reader, token: &token::Token) -> ~str { +pub fn token_to_str(token: &token::Token) -> ~str { token::to_str(get_ident_interner(), token) } diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a6b67ccea9d..300e5adcf92 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2573,7 +2573,7 @@ impl Parser { fn parse_let(&self) -> @decl { let is_mutbl = self.eat_keyword(keywords::Mut); let lo = self.span.lo; - let mut local = self.parse_local(is_mutbl); + let local = self.parse_local(is_mutbl); while self.eat(&token::COMMA) { let _ = self.parse_local(is_mutbl); self.obsolete(*self.span, ObsoleteMultipleLocalDecl); -- cgit 1.4.1-3-g733a5