aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorM V V S Manoj Kumar <mvvsmanojkumar@gmail.com>2023-11-21 22:04:24 +0530
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-30 12:36:45 +0100
commitd5c582396c66e9e0499ecee67129f1ff1dd55889 (patch)
tree61cb49982a68cb1e2884fe1fb5676c906658d29a /gcc/rust/Make-lang.in
parent2c843a047dd3c596b4daabe247e52e1d6475e4d6 (diff)
downloadgcc-d5c582396c66e9e0499ecee67129f1ff1dd55889.zip
gcc-d5c582396c66e9e0499ecee67129f1ff1dd55889.tar.gz
gcc-d5c582396c66e9e0499ecee67129f1ff1dd55889.tar.bz2
gccrs: Added support to Parse ASYNC function
Fixes issue #2650 The parser now parses ASYNC functions. Added ASYNC case to parse_item Added a new function parse_async_item which is called in parse_vis_item to handle the ASYNC case. Parse_async_item also checks the current Rust edition and generates an error if the edition is 2015 gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_item): Likewise. (Parser::parse_vis_item): Likewise. (Parser::parse_async_item): Likewise. * parse/rust-parse.h: Made declaration for parse_async_item. gcc/testsuite/ChangeLog: * rust/compile/issue-2650-1.rs: New test.(edition=2018) * rust/compile/issue-2650-2.rs: New test.(edition=2015) Signed-off-by: M V V S Manoj Kumar <mvvsmanojkumar@gmail.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions