Rewrite orphan_check_trait_ref
to use a TypeVisitor
#99552
Merged
orphan_check_trait_ref
to use a TypeVisitor
#99552