]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add checks for Trait functions
authorKushal Pal <kushalpal109@gmail.com>
Fri, 26 Jan 2024 05:55:10 +0000 (11:25 +0530)
committerCohenArthur <arthur.cohen@embecosm.com>
Mon, 5 Feb 2024 17:08:39 +0000 (17:08 +0000)
commit37a6e44c4c3fcc90b2a19ba75741d4827d525a81
treeb657cf4a97c63c99d5816cdda388242045ba4ee1
parenta9ed0b1594fc3d95bdfb999fbce6d93424d26868
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