aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/lint/rust-lint-marklive.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/lint/rust-lint-marklive.h')
-rw-r--r--gcc/rust/lint/rust-lint-marklive.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/lint/rust-lint-marklive.h b/gcc/rust/lint/rust-lint-marklive.h
index 7b7b68f..ca5d894 100644
--- a/gcc/rust/lint/rust-lint-marklive.h
+++ b/gcc/rust/lint/rust-lint-marklive.h
@@ -97,10 +97,10 @@ public:
void visit (HIR::BlockExpr &expr) override
{
- expr.iterate_stmts ([&] (HIR::Stmt *s) mutable -> bool {
- s->accept_vis (*this);
- return true;
- });
+ for (auto &s : expr.get_statements ())
+ {
+ s->accept_vis (*this);
+ }
if (expr.has_expr ())
{
expr.get_final_expr ()->accept_vis (*this);