]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix error emission for self pointers
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 15 Nov 2023 10:08:09 +0000 (11:08 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 30 Jan 2024 11:36:42 +0000 (12:36 +0100)
commitca16a3ee232dac565cb18ea5e0b84c4ad54f727e
tree09434f3e7d0192bcb5993fdc201a3b832ca091c5
parentbf47346052c22e067fe49070524bd0fb90c51628
gccrs: Fix error emission for self pointers

Self pointer checking loop condition was inverted, the latter was
therefore never executed.

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h (Parser::parse_self_param): Fix the loop
exit condition.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/parse/rust-parse-impl.h