]> git.ipfire.org Git - thirdparty/gcc.git/commit
parser: Fix parsing of closure param list
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 2 Feb 2023 14:32:17 +0000 (15:32 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 3 Feb 2023 10:50:00 +0000 (11:50 +0100)
commit38bad2bf21ef0649b3e89bcccfe7e8f7c366de68
treefb72a0b4c247dd653648b1a32ba146d8970ba781
parent776c4247de465dd93438a738fff48d5b2076ec11
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]