Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple C++ exception representation from Rust str #644

Merged
merged 1 commit into from
Jan 2, 2021
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 2, 2021

This is necessary in order to update rust::Str to match the layout of &str (using the same techniques we do in rust::String to make it match the representation of String in Rust).

Part of the work on #608. Once we allow lifetimes in general, including in structs, it will be possible to have structs containing &str where we can no longer rely on the code generator to reconcile the representation between the Rust side and C++ side the way we currently do for strs in function argument and function return position.

@dtolnay dtolnay merged commit aec3f24 into master Jan 2, 2021
@dtolnay dtolnay deleted the result branch January 2, 2021 21:15
dtolnay added a commit that referenced this pull request Jan 3, 2021
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.

None yet

1 participant