]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix issue with parsing unsafe block expression statements
authorOwen Avery <powerboat9.gamer@gmail.com>
Fri, 27 Jan 2023 03:59:49 +0000 (22:59 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:24 +0000 (10:47 +0200)
commitd2a499a9881c7c079d2a722b57c7fcf022a864dd
treed11a56d65f831074820f4051435ae859bbe1a181
parent990ae497b8684be7dde7350c5a2292badd518c15
gccrs: Fix issue with parsing unsafe block expression statements

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h
(Parser::parse_stmt): Handle unsafe expression statements.

gcc/testsuite/ChangeLog:

* rust/compile/issue-1422.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/issue-1422.rs [new file with mode: 0644]