gccrs: parser: Fix parsing of closure param list
commit7f5144d1c9638eee4499c45d6ee625ff670cbe69
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 2 Feb 2023 14:32:17 +0000 (2 15:32 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:19 +0000 (6 10:47 +0200)
tree803d75c904dd6551f4a31e375a95c1f8505beae7
parent2af66ebd1d83f8b0706805fd650f18bd8c8effe7
gccrs: parser: Fix parsing of closure param list

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_closure_expr): Advance tokens
properly when parsing closure param list.

gcc/testsuite/ChangeLog:

* rust/compile/closure_move_expr.rs: New test.
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/closure_move_expr.rs [new file with mode: 0644]