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 {
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue