Skip to content

Wrap struct literals in parens before applying rules on them - #654

Merged
nunoplopes merged 5 commits into
Cpp2Rust:masterfrom
lucic71:19-struct-literal-in-rule-condition
Nov 18, 2026
Merged

nunoplopes merged 5 commits into
Cpp2Rust:masterfrom
lucic71:19-struct-literal-in-rule-condition

Conversation

@lucic71

@lucic71 lucic71 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Rust consideres the following while ill-formed without parens around B: while a != (B {}) { body }

@nunoplopes
nunoplopes merged commit 682ad3e into Cpp2Rust:master Nov 18, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants