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

Teach transmute_{ref,mut}! to handle slice DSTs #1924

Open
wants to merge 1 commit into
base: v0.8.x
Choose a base branch
from

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Oct 16, 2024

TODO:

  • Figure out how to make this backwards-compatible (since current macros work with T: Sized, but T: Sized does not imply T: KnownLayout)
  • Make it so that Sized bounds are still enforced on older toolchains that don't support slice DST transmutes
  • Write safety comments
  • Get rid of now-unused macros and functions in util::macro_util

Makes progress on #1817

gherrit-pr-id: Ib4bc62202e0b3b09d155333b525087f7aa8f02c2

TODO:
- Figure out how to make this backwards-compatible (since current macros
  work with `T: Sized`, but `T: Sized` does not imply `T: KnownLayout`)
- Make it so that `Sized` bounds are still enforced on older toolchains
  that don't support slice DST transmutes
- Write safety comments
- Get rid of now-unused macros and functions in util::macro_util

Makes progress on #1817

gherrit-pr-id: Ib4bc62202e0b3b09d155333b525087f7aa8f02c2
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.

1 participant