diff options
Diffstat (limited to 'gcc/rust/lint/rust-lint-marklive.h')
-rw-r--r-- | gcc/rust/lint/rust-lint-marklive.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/rust/lint/rust-lint-marklive.h b/gcc/rust/lint/rust-lint-marklive.h index f6d4b09..74cf0d3 100644 --- a/gcc/rust/lint/rust-lint-marklive.h +++ b/gcc/rust/lint/rust-lint-marklive.h @@ -39,6 +39,21 @@ public: void visit (HIR::PathInExpression &expr) override; void visit (HIR::IdentifierExpr &expr) override; + void visit (HIR::BorrowExpr &expr) override + { + expr.get_expr ().get ()->accept_vis (*this); + } + + void visit (HIR::DereferenceExpr &expr) override + { + expr.get_expr ().get ()->accept_vis (*this); + } + + void visit (HIR::NegationExpr &expr) override + { + expr.get_expr ().get ()->accept_vis (*this); + } + void visit (HIR::BlockExpr &expr) override { expr.iterate_stmts ([&] (HIR::Stmt *s) mutable -> bool { @@ -50,6 +65,7 @@ public: expr.get_final_expr ().get ()->accept_vis (*this); } } + void visit (HIR::Function &function) override { function.get_definition ().get ()->accept_vis (*this); |