diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-01-23 17:23:05 +0530 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-01-26 10:11:04 +0000 |
commit | bef49670f6248e30ab888ecdbd52a8a1612e25ef (patch) | |
tree | 769cbf9516ce10d8c15c918c243400ba9eeb0eec /gcc/rust/rust-lang.cc | |
parent | 396565b34006f8b26bf9b8ea34a837bceb02c70b (diff) | |
download | gcc-bef49670f6248e30ab888ecdbd52a8a1612e25ef.zip gcc-bef49670f6248e30ab888ecdbd52a8a1612e25ef.tar.gz gcc-bef49670f6248e30ab888ecdbd52a8a1612e25ef.tar.bz2 |
Parse normal functions with `self` parameter correctly
Fixes #2812
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::parse_function):
Skip token if its a COMMA.
gcc/testsuite/ChangeLog:
* rust/compile/issue-2812.rs: New test.
Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
Diffstat (limited to 'gcc/rust/rust-lang.cc')
0 files changed, 0 insertions, 0 deletions