gccrs: Add checks for Trait functions
commit4be51abd5e829b2b9e8f4b7bc48212c17cf4c3f9
authorKushal Pal <kushalpal109@gmail.com>
Fri, 26 Jan 2024 05:55:10 +0000 (26 11:25 +0530)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 7 Feb 2024 11:40:23 +0000 (7 12:40 +0100)
tree199292cc6e69494e1677056baaa4db66e5d40702
parent4287f316e48398832aae30e288af887198206c68
gccrs: Add checks for Trait functions

Since we want to use AST::Function class for trait functions as well, we
need to check against specific conditions in ASTValidation phase.

gcc/rust/ChangeLog:

* checks/errors/rust-ast-validation.cc (ASTValidation::visit):
Add checks for Trait functions.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/checks/errors/rust-ast-validation.cc