Skip to content

Fix #114: Rust 2024 compatibility - #367

Closed
nunoplopes wants to merge 3 commits into
masterfrom
rust_2024
Closed

nunoplopes wants to merge 3 commits into
masterfrom
rust_2024

Conversation

@nunoplopes

Copy link
Copy Markdown
Contributor

No description provided.

@lucic71

lucic71 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

I think this is already solved in #366

// them in Rust 2024 edition. Wrapping the variable in a `&raw mut` pointer
// followed by a deref sidesteps the restriction.
// Doesn't apply when a rule replaced the expression with custom Rust code.
static std::string WrapMutableStaticPlace(const clang::Decl *decl0,

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 can be inlined to avoid passing the string then returning it

@nunoplopes nunoplopes closed this Sep 17, 2026
@nunoplopes
nunoplopes deleted the rust_2024 branch September 17, 2026 13:44
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