]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add missing visitors for AST::Function.
authorKushal Pal <kushalpal109@gmail.com>
Fri, 26 Jan 2024 06:05:24 +0000 (11:35 +0530)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 5 Feb 2024 17:08:39 +0000 (17:08 +0000)
commitf1b650698219f0330ee0e59384b5b8c789debf37
treef1d1c31fc0b2654948c7e70ef23689e6abb9de8d
parent37a6e44c4c3fcc90b2a19ba75741d4827d525a81
Add missing visitors for AST::Function.

To use AST::Function instead of AST::TraitItemFunc and
AST::TraitItemMethod, we need to provide similar visitors during
lowering and resolving phase.

gcc/rust/ChangeLog:

* hir/rust-ast-lower-implitem.cc (ASTLowerTraitItem::visit):
Provide visitor for AST::Function.
* hir/rust-ast-lower-implitem.h:
Likewise.
* resolve/rust-ast-resolve-implitem.h:
Likewise.
* resolve/rust-ast-resolve-item.cc (ResolveTraitItems::visit):
Likewise.
* resolve/rust-ast-resolve-item.h:
Likewise.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/hir/rust-ast-lower-implitem.cc
gcc/rust/hir/rust-ast-lower-implitem.h
gcc/rust/resolve/rust-ast-resolve-implitem.h
gcc/rust/resolve/rust-ast-resolve-item.cc
gcc/rust/resolve/rust-ast-resolve-item.h