Fix miri error in into_inner() of CString#62610
Fix miri error in into_inner() of CString#62610bors merged 1 commit intorust-lang:masterfrom Stargateur:fix-miri-error-cstring-into_inner
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