Skip to content

Only emit mem::zeroed() on POD types#105

Merged
nunoplopes merged 1 commit into
Cpp2Rust:masterfrom
lucic71:zeroed
May 17, 2026
Merged

Only emit mem::zeroed() on POD types#105
nunoplopes merged 1 commit into
Cpp2Rust:masterfrom
lucic71:zeroed

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented May 16, 2026

The previous check, i.e. ctx_.getSourceManager().isInSystemHeader(record->getLocation()), was too permissive and also matched against types such as std::vector which are not POD and cannot be initialized using std::mem::zeroed()

@nunoplopes nunoplopes merged commit f120aeb into Cpp2Rust:master May 17, 2026
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