]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add validation for functions without body
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 22 Nov 2023 15:37:17 +0000 (16:37 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Wed, 6 Dec 2023 09:35:56 +0000 (09:35 +0000)
commitbc596aafbe3a04f57af92719b47b000134cb5642
tree0ed9af5d472fc008defa4f5513baff967c19279a
parent6d179035cd770d5b698cdd5d6a8c566d7c0b4b08
Add validation for functions without body

Add checks in the ast validation pass to error out with functions
(either free or associated) without a definition.

gcc/rust/ChangeLog:

* checks/errors/rust-ast-validation.cc (ASTValidation::visit): Add
a validation check and emit an error depending on the context.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/checks/errors/rust-ast-validation.cc