Skip to content

Write mutable fields through const objects - #520

Merged
nunoplopes merged 7 commits into
Cpp2Rust:masterfrom
lucic71:14-mutable-field-receiver
Oct 11, 2026
Merged

nunoplopes merged 7 commits into
Cpp2Rust:masterfrom
lucic71:14-mutable-field-receiver

Conversation

@lucic71

@lucic71 lucic71 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

computed_expr_type_ = ComputedExprType::FreshPointer;
return false;
}
str = std::format("(*(&raw const {}).cast_mut())", str);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This shouldn't apply for rvalue cases

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@nunoplopes
nunoplopes merged commit 933bdee into Cpp2Rust:master Oct 11, 2026
9 checks passed
@lucic71
lucic71 deleted the 14-mutable-field-receiver branch October 11, 2026 08:40
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