Remove die!, raplace invocations with fail! Issue #4524 pt 3
This commit is contained in:
parent
c51ecc3223
commit
4445b38df2
363 changed files with 910 additions and 906 deletions
|
@ -2538,7 +2538,7 @@ pub impl Parser {
|
|||
_ => None
|
||||
}
|
||||
}
|
||||
_ => die!()
|
||||
_ => fail!()
|
||||
};
|
||||
|
||||
match maybe_bound {
|
||||
|
@ -3907,7 +3907,7 @@ pub impl Parser {
|
|||
let metadata = self.parse_optional_meta();
|
||||
view_item_use(ident, metadata, self.get_id())
|
||||
} else {
|
||||
die!();
|
||||
fail!();
|
||||
};
|
||||
self.expect(token::SEMI);
|
||||
@ast::view_item { node: node,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue