From: Pierre-Emmanuel Patry Date: Thu, 18 Apr 2024 20:30:56 +0000 (+0200) Subject: Visit type during resolution of inherent impl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=973e60a2be6936d4909a9ccda1c9dce1e6eb1f4a;p=thirdparty%2Fgcc.git Visit type during resolution of inherent impl Inherent impl has a type it applies to. This type was not visited and thus not resolved. gcc/rust/ChangeLog: * resolve/rust-default-resolver.cc (DefaultResolver::visit): Visit inherent impl type. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/rust/resolve/rust-default-resolver.cc b/gcc/rust/resolve/rust-default-resolver.cc index 393994808ee0..c54cabad2e5d 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); };