From 418f99111852d13e9446c70cd616e6e6780bb632 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 30 Apr 2013 14:10:21 -0400 Subject: allover: numerous unused muts etc --- src/libsyntax/parse/mod.rs | 2 +- src/libsyntax/parse/parser.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 7e7931bbb60..5d51a54d770 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -24,7 +24,7 @@ use parse::token::{ident_interner, mk_ident_interner}; use core::io; use core::option::{None, Option, Some}; use core::path::Path; -use core::result::{Err, Ok, Result}; +use core::result::{Err, Ok}; pub mod lexer; pub mod parser; diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 50bdfb2f557..1129e7b708e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -938,7 +938,7 @@ pub impl Parser { match *self.token { token::MOD_SEP => { match self.look_ahead(1u) { - token::IDENT(id,_) => { + token::IDENT(*) => { self.bump(); ids.push(self.parse_ident()); } @@ -3728,7 +3728,6 @@ pub impl Parser { items: _, foreign_items: foreign_items } = self.parse_foreign_items(first_item_attrs, true); - let mut initial_attrs = attrs_remaining; assert!(*self.token == token::RBRACE); ast::foreign_mod { sort: sort, -- cgit 1.4.1-3-g733a5