Don't use panicking helpers in Parser.
This commit is contained in:
parent
f7172490f8
commit
1dd87dcfea
9 changed files with 26 additions and 25 deletions
|
@ -359,7 +359,8 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
// Panicing fns (for now!)
|
||||
// This is so that the quote_*!() syntax extensions
|
||||
// These functions are used by the quote_*!() syntax extensions, but shouldn't
|
||||
// be used otherwise.
|
||||
pub fn parse_expr(&mut self) -> P<Expr> {
|
||||
panictry!(self.parse_expr_nopanic())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue