From: Pierre-Emmanuel Patry Date: Thu, 18 Apr 2024 20:30:56 +0000 (+0200) Subject: gccrs: Visit type during resolution of inherent impl X-Git-Tag: basepoints/gcc-16~6949 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89ba071d8dfd67bac0f3f3eb601fe681e9793cb7;p=thirdparty%2Fgcc.git gccrs: 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 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); };