mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
do not eat nested exprs result in format args visitor
This commit is contained in:
parent
a42873e85b
commit
8beec62315
@ -604,8 +604,7 @@ fn may_contain_yield_point(e: &ast::Expr) -> bool {
|
||||
if let ast::ExprKind::Await(_, _) | ast::ExprKind::Yield(_) = e.kind {
|
||||
ControlFlow::Break(())
|
||||
} else {
|
||||
visit::walk_expr(self, e);
|
||||
ControlFlow::Continue(())
|
||||
visit::walk_expr(self, e)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user