syntax: Warning police

This commit is contained in:
Tim Chevalier 2013-05-03 16:20:24 -07:00
parent 18bf9bd55a
commit 1a5f11a11b
2 changed files with 3 additions and 4 deletions

View File

@ -932,8 +932,8 @@ pub impl Parser {
loop {
match *self.token {
token::MOD_SEP => {
match self.look_ahead(1u) {
token::IDENT(id,_) => {
match self.look_ahead(1) {
token::IDENT(*) => {
self.bump();
ids.push(self.parse_ident());
}
@ -3693,7 +3693,7 @@ pub impl Parser {
items: _,
foreign_items: foreign_items
} = self.parse_foreign_items(first_item_attrs, true);
let mut initial_attrs = attrs_remaining;
let _initial_attrs = attrs_remaining;
assert!(*self.token == token::RBRACE);
ast::foreign_mod {
sort: sort,

View File

@ -22,7 +22,6 @@
#[allow(vecs_implicitly_copyable)];
#[allow(non_camel_case_types)];
#[deny(deprecated_mode)];
#[deny(deprecated_pattern)];
extern mod std(vers = "0.7-pre");