-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Fix miri error in into_inner() of CString #62610
Fix miri error in into_inner() of CString #62610
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @RalfJung (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
I would like to add a test but I don't know how. |
Thanks a lot! I prefer the
You mean a test that this does not error in Miri any more? For that, please make a PR at https://github.com/rust-lang/miri/. |
This looks great! When you force-push and want a new review, please leave a note saying so; GitHub unfortunately does not send email notifications for force-pushes. @bors r+ Do you want to try to add a Miri test case as well? Do you need mentoring for that? |
📌 Commit 4c4bd34 has been approved by |
☀️ Test successful - checks-azure, checks-travis, status-appveyor |
Fix #62553
I choice to not transmute because I think it's more unsafe and in case the structure change this code should always work.
r? @RalfJung