Skip to content

Wrap variadic arg in paren before calling .into()#168

Merged
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:variadic-into
Jun 3, 2026
Merged

Wrap variadic arg in paren before calling .into()#168
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:variadic-into

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented Jun 3, 2026

libc::strlen(dummy as *const i8) as u64.into() (without paren) errors because we can't write as u64.into(), we need to wrap the entire arg in a paren before calling .into(): (libc::strlen(dummy as *const i8) as u64).into()

@nunoplopes
Copy link
Copy Markdown
Contributor

This one has conflicts

@lucic71
Copy link
Copy Markdown
Contributor Author

lucic71 commented Jun 3, 2026

This one has conflicts

Solved

@nunoplopes nunoplopes merged commit f0883dc into Cpp2Rust:master Jun 3, 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