diff --git a/gcc/rust/hir/rust-ast-lower.cc b/gcc/rust/hir/rust-ast-lower.cc index cb6bd01e45d..c110880f5a2 100644 --- a/gcc/rust/hir/rust-ast-lower.cc +++ b/gcc/rust/hir/rust-ast-lower.cc @@ -659,7 +659,7 @@ ASTLoweringExprWithBlock::visit (AST::ForLoopExpr &expr) Resolver::Rib *rib = nullptr; bool ok = resolver.get_name_scope ().lookup_rib_for_decl ( - expr.get_loop_block().get_node_id (), &rib); + expr.get_loop_block ().get_node_id (), &rib); rust_assert (ok);