diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-06-05 18:12:49 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-06-13 15:31:07 +0000 |
commit | 4eb63c929f8bd77e0afa463bfc8f45986e12d288 (patch) | |
tree | 1f1e5063f03ac116f4f03adae7393933dc0e0c2c /gcc/rust/hir/rust-hir-dump.cc | |
parent | 4ec940e39cae459a7c26f9ee24a7145d277cc8bf (diff) | |
download | gcc-4eb63c929f8bd77e0afa463bfc8f45986e12d288.zip gcc-4eb63c929f8bd77e0afa463bfc8f45986e12d288.tar.gz gcc-4eb63c929f8bd77e0afa463bfc8f45986e12d288.tar.bz2 |
Fix visitor-related warnings
gcc/rust/ChangeLog:
* ast/rust-ast-collector.cc (TokenCollector::visit):
Fix visitor-related warnings
* ast/rust-ast-collector.h: Likewise.
* ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise.
* ast/rust-ast-visitor.h: Likewise.
* checks/errors/borrowck/rust-bir-builder-struct.h: Likewise.
* checks/errors/borrowck/rust-function-collector.h: Likewise.
* checks/errors/rust-const-checker.cc (ConstChecker::visit): Likewise.
* checks/errors/rust-const-checker.h: Likewise.
* expand/rust-derive.h: Likewise.
* expand/rust-macro-builtins-asm.cc (parse_reg_operand): Likewise.
* hir/rust-hir-dump.cc (Dump::visit): Likewise.
* hir/rust-hir-dump.h: Likewise.
* hir/tree/rust-hir-visitor.h: Likewise.
* resolve/rust-ast-resolve-base.cc (ResolverBase::visit): Likewise.
* resolve/rust-ast-resolve-base.h: Likewise.
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
-rw-r--r-- | gcc/rust/hir/rust-hir-dump.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/hir/rust-hir-dump.cc b/gcc/rust/hir/rust-hir-dump.cc index 38c2db1..bcacc8d 100644 --- a/gcc/rust/hir/rust-hir-dump.cc +++ b/gcc/rust/hir/rust-hir-dump.cc @@ -24,6 +24,7 @@ #include "rust-hir.h" #include <string> #include "rust-attribute-values.h" +#include "tree/rust-hir-expr.h" namespace Rust { namespace HIR { @@ -1471,6 +1472,10 @@ Dump::visit (AsyncBlockExpr &e) } void +Dump::visit (InlineAsm &e) +{} + +void Dump::visit (TypeParam &e) { begin ("TypeParam"); |