]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix Attr metavariable binding
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 10 May 2025 02:17:55 +0000 (22:17 -0400)
committerPhilip Herron <philip.herron@embecosm.com>
Tue, 13 May 2025 09:29:13 +0000 (09:29 +0000)
commitdceaabbe556051101ef1c39b5a323ca7d5bf2f1e
tree421ef6afe7afa8ca838aa9b8d0f6c5ded921c6d8
parentf33bae65a16b6d8c9d4f491638c4728f9c231ed4
Fix Attr metavariable binding

gcc/rust/ChangeLog:

* parse/rust-parse-impl.h
(Parser::parse_attr_input): Handle more delimeter tokens and the
END_OF_FILE token.
(Parser::skip_after_end_attribute): Handle the END_OF_FILE
token.

gcc/testsuite/ChangeLog:

* rust/compile/macros/mbe/meta-param.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/parse/rust-parse-impl.h
gcc/testsuite/rust/compile/macros/mbe/meta-param.rs [new file with mode: 0644]