Skip to content

Commit 694cf02

Browse files
committed
Fixup verify assigneee to be permissive of PathInExpression
1 parent c47d5cb commit 694cf02

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
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)