Skip to content

Commit 1a5f11a

Browse files
committed
syntax: Warning police
1 parent 18bf9bd commit 1a5f11a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,8 @@ pub impl Parser {
932932
loop {
933933
match *self.token {
934934
token::MOD_SEP => {
935-
match self.look_ahead(1u) {
936-
token::IDENT(id,_) => {
935+
match self.look_ahead(1) {
936+
token::IDENT(*) => {
937937
self.bump();
938938
ids.push(self.parse_ident());
939939
}
@@ -3693,7 +3693,7 @@ pub impl Parser {
36933693
items: _,
36943694
foreign_items: foreign_items
36953695
} = self.parse_foreign_items(first_item_attrs, true);
3696-
let mut initial_attrs = attrs_remaining;
3696+
let _initial_attrs = attrs_remaining;
36973697
assert!(*self.token == token::RBRACE);
36983698
ast::foreign_mod {
36993699
sort: sort,

src/libsyntax/syntax.rc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#[allow(vecs_implicitly_copyable)];
2424
#[allow(non_camel_case_types)];
25-
#[deny(deprecated_mode)];
2625
#[deny(deprecated_pattern)];
2726

2827
extern mod std(vers = "0.7-pre");

0 commit comments

Comments
 (0)