Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid parsing const unsafe/extern functions as async
gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_vis_item): Call parse_function instead of parse_async_item when finding UNSAFE or EXTERN_KW during lookahead. gcc/testsuite/ChangeLog: * rust/compile/func-const-unsafe.rs: New test. Signed-off-by: Owen Avery <[email protected]>
- Loading branch information