about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-06 12:58:41 -0700
committerbors <bors@rust-lang.org>2013-06-06 12:58:41 -0700
commita51fae097f17792edf98ec8e7aaf1a1aad58a86f (patch)
treee79d885a2e1f385362d32f4d6d4cb6b2df8a9390 /src/libsyntax/parse
parent0e9636922410d4c905135e93056fd86f1f49da30 (diff)
parent8bbf83b62a901039ea9e5e6a92b664f2d3c72b9c (diff)
downloadrust-a51fae097f17792edf98ec8e7aaf1a1aad58a86f.tar.gz
rust-a51fae097f17792edf98ec8e7aaf1a1aad58a86f.zip
auto merge of #6937 : msullivan/rust/no-warnings, r=bstrie
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);