We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7e6527 commit 0e7eef6Copy full SHA for 0e7eef6
gcc/rust/typecheck/rust-tyty-cmp.h
@@ -43,16 +43,19 @@ class BaseCmp : public TyConstVisitor
43
return ok;
44
}
45
46
- else if (other->get_kind () == TypeKind::PLACEHOLDER)
+ if (other->get_kind () == TypeKind::PLACEHOLDER)
47
{
48
const PlaceholderType *p = static_cast<const PlaceholderType *> (other);
49
if (p->can_resolve ())
50
51
- const BaseType *resolved = p->resolve ();
52
- resolved->accept_vis (*this);
53
- return ok;
+ other = p->resolve ();
54
55
+ if (other->get_kind () == TypeKind::PROJECTION)
+ {
56
+ const ProjectionType *p = static_cast<const ProjectionType *> (other);
57
+ other = p->get ();
58
+ }
59
60
other->accept_vis (*this);
61
0 commit comments