Skip to content

Conversation

@lucasly-ba
Copy link
Contributor

Fixes #4222
gcc/rust/ChangeLog:

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

gcc/testsuite/ChangeLog:

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

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>
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philberty philberty added this pull request to the merge queue Nov 9, 2025
@philberty philberty added AST diagnostic diagnostic static analysis labels Nov 9, 2025
@github-project-automation github-project-automation bot moved this to In progress in Project Pineapple Nov 9, 2025
Merged via the queue into Rust-GCC:master with commit 95e08b8 Nov 9, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Project Pineapple Nov 9, 2025
@powerboat9
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AST diagnostic diagnostic static analysis

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

cfg attribute should give error with literal predicate

3 participants