forked from Rust-GCC/gccrs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support to Parse ASYNC function
Fixes issue Rust-GCC#2560 The parser now parses ASYNC functions. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_item):Added ASYNC case. (Parser::parse_vis_item):Added a switch case to handel ASYNC. gcc/testsuite/ChangeLog: * rust/compile/issue-2650.rs: New test. Signed-off-by: M V V S Manoj Kumar <mvvsmanojkumar@gmail.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub async fn a() -> u32 { | ||
1 | ||
} |