]> gcc.gnu.org Git - gcc.git/commit
Fix parsing of array expressions.
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 27 Mar 2023 15:05:03 +0000 (11:05 -0400)
committerPhilip Herron <philip.herron@embecosm.com>
Wed, 29 Mar 2023 21:17:35 +0000 (21:17 +0000)
commit0ddec9f44d6ce81eec7aa62c2d9b13c9094e7857
tree38b85d9089743cad74ed0089b7d946b6925f2299
parent87a0a8f84f56002b5c6f3c08dcce831ba7759eed
Fix parsing of array expressions.

Array expressions were being eagerly handled
outside of Pratt parsing.

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h
(Parser<ManagedTokenSource>::parse_expr_without_block):
Remove direct array expression handling.

gcc/testsuite/ChangeLog:

* rust/compile/array4.rs: New test.
* rust/execute/torture/arrays.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/array4.rs [new file with mode: 0644]
gcc/testsuite/rust/execute/torture/arrays.rs [new file with mode: 0644]
This page took 0.053647 seconds and 5 git commands to generate.