aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-03-01 17:45:51 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:19:02 +0100
commite6ff2bcc3a6107ecbef6e744c42f5e9b1b007dbe (patch)
tree9bec1454cbca574e7f5736f87e8d241a78153d7d /gcc/rust/hir/tree
parent895729f35b566a880d92ce4756a16f1265a41907 (diff)
downloadgcc-e6ff2bcc3a6107ecbef6e744c42f5e9b1b007dbe.zip
gcc-e6ff2bcc3a6107ecbef6e744c42f5e9b1b007dbe.tar.gz
gcc-e6ff2bcc3a6107ecbef6e744c42f5e9b1b007dbe.tar.bz2
gccrs: parser: Fix while let expr parsing
While let expr return unit but are valid construct in rust, they should therefore be included in the parsing code. Also add a new test to check parsing of while let expressions. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_while_let_loop_expr): Prevent hard error on token skip. (Parser::null_denotation): Fix parser for while let expressions. gcc/testsuite/ChangeLog: * rust/compile/while_let_expr.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/tree')
0 files changed, 0 insertions, 0 deletions