Fix unspecified transmute between slice types - #5440
Conversation
This comment has been minimized.
This comment has been minimized.
ec04665 to
c8fcd3c
Compare
|
The change LGTM but could you file this against the |
c8fcd3c to
b02a6a4
Compare
|
I rebased the PR and changed the base branch. Sorry for the noise from the bot :( |
|
I'm not sure what is going on with this, CI never started and I can't seem to rebase it. Would you be able to re-push and see if that unblocks? |
|
Since this is a bit stuck, |
|
Reminder, once the PR becomes ready for a review, use |
The layout of slices is currently not specified in Rust. This PR replaces a `transmute` between slices of different types with the equivalent pointer cast to keep all involved behaviour specified.
Head branch was pushed to by a user without write access
b02a6a4 to
855c01d
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready Seems like github did not handle changing the base branch well |
The layout of slices is currently not specified in Rust. This PR replaces a `transmute` between slices of different types with the equivalent pointer cast to keep all involved behaviour specified. (backport <rust-lang#5440>) (cherry picked from commit 86216b9)
The layout of slices is currently not specified in Rust. This PR replaces a
transmutebetween slices of different types with the equivalent pointer cast to keep all involved behaviour specified.