aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/lint/rust-lint-marklive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/lint/rust-lint-marklive.cc')
-rw-r--r--gcc/rust/lint/rust-lint-marklive.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/lint/rust-lint-marklive.cc b/gcc/rust/lint/rust-lint-marklive.cc
index 0871291..4b095ab4 100644
--- a/gcc/rust/lint/rust-lint-marklive.cc
+++ b/gcc/rust/lint/rust-lint-marklive.cc
@@ -149,10 +149,8 @@ MarkLive::visit (HIR::MethodCallExpr &expr)
{
expr.get_receiver ()->accept_vis (*this);
visit_path_segment (expr.get_method_name ());
- expr.iterate_params ([&] (HIR::Expr *param) -> bool {
- param->accept_vis (*this);
- return true;
- });
+ for (auto &argument : expr.get_arguments ())
+ argument->accept_vis (*this);
// Trying to find the method definition and mark it alive.
NodeId ast_node_id = expr.get_mappings ().get_nodeid ();