diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-11-10 11:27:52 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-11-15 17:17:15 +0100 |
commit | 9657c328d0cdda49b7985c3ee727781a387e128b (patch) | |
tree | fca6e243cd4901ff8847206ab25ebb5dde10bb91 /gcc/rust/hir/rust-hir-dump.cc | |
parent | 815a57351a33491e534cc1b6c6ddfa17eaf2b500 (diff) | |
download | gcc-9657c328d0cdda49b7985c3ee727781a387e128b.zip gcc-9657c328d0cdda49b7985c3ee727781a387e128b.tar.gz gcc-9657c328d0cdda49b7985c3ee727781a387e128b.tar.bz2 |
rust: Remove unused variables and fix dangling references
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
-rw-r--r-- | gcc/rust/hir/rust-hir-dump.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc index 11d4cd1..01d7132 100644 --- a/gcc/rust/hir/rust-hir-dump.cc +++ b/gcc/rust/hir/rust-hir-dump.cc @@ -200,7 +200,7 @@ void Dump::visit (ClosureExpr &) {} void -Dump::visit (BlockExpr &block_expr) +Dump::visit (BlockExpr &) { stream << "BlockExpr" << ":" @@ -324,7 +324,7 @@ void Dump::visit (UseDeclaration &) {} void -Dump::visit (Function &function) +Dump::visit (Function &) { indent++; stream << std::string (indent, indent_char); |