Skip to content

Commit c7262f8

Browse files
committed
Fixup verify assigneee
1 parent 9bf6777 commit c7262f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gcc/rust/resolve/rust-ast-verify-assignee.h

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ class VerifyAsignee : public ResolverBase
7575
}
7676
}
7777

78+
void visit (AST::DereferenceExpr &expr) override
79+
{
80+
expr.get_dereferenced_expr ()->accept_vis (*this);
81+
}
82+
83+
void visit (AST::PathInExpression &expr) override { ok = true; }
84+
7885
private:
7986
VerifyAsignee (NodeId parent) : ResolverBase (parent), ok (false) {}
8087

0 commit comments

Comments
 (0)