aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-09-17 15:08:42 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:37 +0100
commit95703bb75efc3ca0300b78ab9d3f4d544faad4b6 (patch)
tree480bedb9746410f64d48c4f81550c82b758d0fa4 /gcc/rust/hir/rust-hir-dump.cc
parent0a99bfe15af01e15c07bb5003b54d351f64a5cde (diff)
downloadgcc-95703bb75efc3ca0300b78ab9d3f4d544faad4b6.zip
gcc-95703bb75efc3ca0300b78ab9d3f4d544faad4b6.tar.gz
gcc-95703bb75efc3ca0300b78ab9d3f4d544faad4b6.tar.bz2
gccrs: Remove HIR::ForLoopExpr
This will end up getting desugared into a LoopExpr with a MatchExpr body. gcc/rust/ChangeLog: * backend/rust-compile-block.h: remove HIR::ForLoopExpr * backend/rust-compile-expr.h: likewise * checks/errors/privacy/rust-privacy-reporter.cc (PrivacyReporter::visit): likewise * checks/errors/privacy/rust-privacy-reporter.h: likewise * checks/errors/rust-const-checker.cc (ConstChecker::visit): likewise * checks/errors/rust-const-checker.h: likewise * checks/errors/rust-unsafe-checker.cc (UnsafeChecker::visit): likewise * checks/errors/rust-unsafe-checker.h: likewise * checks/lints/rust-lint-marklive.h: likewise * hir/rust-ast-lower.cc (ASTLoweringExprWithBlock::visit): likewise * hir/rust-hir-dump.cc (Dump::visit): likewise * hir/rust-hir-dump.h: likewise * hir/tree/rust-hir-expr.h (class ForLoopExpr): likewise * hir/tree/rust-hir-full-decls.h (class ForLoopExpr): likewise * hir/tree/rust-hir-visitor.h: likewise * hir/tree/rust-hir.cc (ForLoopExpr::as_string): likewise (ForLoopExpr::accept_vis): likewise * typecheck/rust-hir-type-check-expr.h: likewise Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
-rw-r--r--gcc/rust/hir/rust-hir-dump.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc
index 8078ed1..417e117 100644
--- a/gcc/rust/hir/rust-hir-dump.cc
+++ b/gcc/rust/hir/rust-hir-dump.cc
@@ -1385,19 +1385,6 @@ Dump::visit (WhileLetLoopExpr &e)
}
void
-Dump::visit (ForLoopExpr &e)
-{
- begin ("ForLoopExpr");
- do_baseloopexpr (e);
-
- visit_field ("pattern", e.get_pattern ());
-
- visit_field ("iterator_expr", *e.get_iterator_expr ());
-
- end ("ForLoopExpr");
-}
-
-void
Dump::visit (IfExpr &e)
{
begin ("IfExpr");