]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add async const function ast validation pass
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 22 Nov 2023 09:44:08 +0000 (10:44 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:47 +0000 (12:36 +0100)
commit04b3089a47c5ccfb86b29a9c64157d5d4f755c1c
tree3c68ceeacba71ca19e635b380154a6e832da059b
parent68990dbeadc5f4b90c0aa14387cb80d0f411aa43
gccrs: Add async const function ast validation pass

Add a check during AST validation pass to ensure functions are either
const or async but not both.

gcc/rust/ChangeLog:

* checks/errors/rust-ast-validation.cc (ASTValidation::visit): Add
async const check.

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