Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gccrs: fix bad not expression in rust #3301

Merged
merged 1 commit into from
Dec 13, 2024
Merged

gccrs: fix bad not expression in rust #3301

merged 1 commit into from
Dec 13, 2024

Conversation

philberty
Copy link
Member

Fixes #3229

gcc/rust/ChangeLog:

* rust-gcc.cc (operator_to_tree_code): ! expressions are BIT_NOT_EXPR

Fixes #3229

gcc/rust/ChangeLog:

	* rust-gcc.cc (operator_to_tree_code): ! expressions are BIT_NOT_EXPR

Signed-off-by: Philip Herron <[email protected]>
@philberty philberty added the bug label Dec 12, 2024
@philberty philberty added this to the Remaining typecheck issues milestone Dec 12, 2024
@philberty philberty added this pull request to the merge queue Dec 13, 2024
Merged via the queue into master with commit cc2445c Dec 13, 2024
13 checks passed
@powerboat9
Copy link
Contributor

I think it might actually be different depending on type (bool vs number)

https://doc.rust-lang.org/reference/expressions/operator-expr.html#negation-operators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

unexpected results from bitwise complement operator !
2 participants