diff --git a/gcc/rust/resolve/rust-default-resolver.cc b/gcc/rust/resolve/rust-default-resolver.cc index 393994808ee..c54cabad2e5 100644 --- a/gcc/rust/resolve/rust-default-resolver.cc +++ b/gcc/rust/resolve/rust-default-resolver.cc @@ -115,6 +115,7 @@ void DefaultResolver::visit (AST::InherentImpl &impl) { auto inner_fn = [this, &impl] () { + visit (impl.get_type ()); for (auto &item : impl.get_impl_items ()) item->accept_vis (*this); };