Do not recover when parsing stmt in cfg-eval.
This commit is contained in:
parent
f2eb9f85b9
commit
d56ce8e199
4 changed files with 38 additions and 2 deletions
|
@ -166,7 +166,9 @@ impl CfgEval<'_, '_> {
|
|||
))
|
||||
},
|
||||
Annotatable::Stmt(_) => |parser| {
|
||||
Ok(Annotatable::Stmt(P(parser.parse_stmt(ForceCollect::Yes)?.unwrap())))
|
||||
Ok(Annotatable::Stmt(P(parser
|
||||
.parse_stmt_without_recovery(false, ForceCollect::Yes)?
|
||||
.unwrap())))
|
||||
},
|
||||
Annotatable::Expr(_) => {
|
||||
|parser| Ok(Annotatable::Expr(parser.parse_expr_force_collect()?))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue