We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_trait_ref()
1 parent ed7b761 commit ac617d7Copy full SHA for ac617d7
gcc/rust/hir/tree/rust-hir-visitor.cc
@@ -897,7 +897,8 @@ DefaultHIRVisitor::walk (ImplBlock &impl)
897
visit_outer_attrs (impl);
898
for (auto &generic : impl.get_generic_params ())
899
generic->accept_vis (*this);
900
- impl.get_trait_ref ().accept_vis (*this);
+ if (impl.has_trait_ref ())
901
+ impl.get_trait_ref ().accept_vis (*this);
902
impl.get_type ().accept_vis (*this);
903
if (impl.has_where_clause ())
904
visit_where_clause (impl.get_where_clause ());
0 commit comments