]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: fix cfg attribute error with literal predicate
authorLucas Ly Ba <lucas.ly-ba@outlook.com>
Thu, 6 Nov 2025 16:26:12 +0000 (16:26 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Nov 2025 14:58:18 +0000 (15:58 +0100)
commit63d2fbc4d105e4bd58394217a1a0db869fa5ff10
treec087afea352b0783402a11564b9b448545ef8b54
parent87b9661250fcf029fa5eb1c9173c56bfea5246da
gccrs: fix cfg attribute error with literal predicate

gcc/rust/ChangeLog:

* ast/rust-ast.cc (MetaItemLitExpr::check_cfg_predicate): Make error.

gcc/testsuite/ChangeLog:

* rust/compile/issue-4222.rs: New test.

Signed-off-by: Lucas Ly Ba <lucas.ly-ba@outlook.com>
gcc/rust/ast/rust-ast.cc
gcc/testsuite/rust/compile/issue-4222.rs [new file with mode: 0644]