about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2013-06-04 15:14:56 -0700
committerMichael Sullivan <sully@msully.net>2013-06-06 12:14:41 -0700
commit8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c (patch)
tree9fd129fcd914f75a3325f6330c6e7f5ecde05826 /src/libsyntax/parse
parent8450dc8f5e7616617d707f8fdbfaf7ad6ad5aa41 (diff)
downloadrust-8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c.tar.gz
rust-8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c.zip
Clean up a handful of build warnings.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/common.rs2
-rw-r--r--src/libsyntax/parse/parser.rs2
2 files changed, 2 insertions, 2 deletions
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);