syntax: Warning police
This commit is contained in:
parent
18bf9bd55a
commit
1a5f11a11b
2 changed files with 3 additions and 4 deletions
|
@ -932,8 +932,8 @@ pub impl Parser {
|
||||||
loop {
|
loop {
|
||||||
match *self.token {
|
match *self.token {
|
||||||
token::MOD_SEP => {
|
token::MOD_SEP => {
|
||||||
match self.look_ahead(1u) {
|
match self.look_ahead(1) {
|
||||||
token::IDENT(id,_) => {
|
token::IDENT(*) => {
|
||||||
self.bump();
|
self.bump();
|
||||||
ids.push(self.parse_ident());
|
ids.push(self.parse_ident());
|
||||||
}
|
}
|
||||||
|
@ -3693,7 +3693,7 @@ pub impl Parser {
|
||||||
items: _,
|
items: _,
|
||||||
foreign_items: foreign_items
|
foreign_items: foreign_items
|
||||||
} = self.parse_foreign_items(first_item_attrs, true);
|
} = self.parse_foreign_items(first_item_attrs, true);
|
||||||
let mut initial_attrs = attrs_remaining;
|
let _initial_attrs = attrs_remaining;
|
||||||
assert!(*self.token == token::RBRACE);
|
assert!(*self.token == token::RBRACE);
|
||||||
ast::foreign_mod {
|
ast::foreign_mod {
|
||||||
sort: sort,
|
sort: sort,
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
#[allow(vecs_implicitly_copyable)];
|
#[allow(vecs_implicitly_copyable)];
|
||||||
#[allow(non_camel_case_types)];
|
#[allow(non_camel_case_types)];
|
||||||
#[deny(deprecated_mode)];
|
|
||||||
#[deny(deprecated_pattern)];
|
#[deny(deprecated_pattern)];
|
||||||
|
|
||||||
extern mod std(vers = "0.7-pre");
|
extern mod std(vers = "0.7-pre");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue