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

Commits on Oct 16, 2024

  1. Teach transmute_{ref,mut}! to handle slice DSTs

    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
    joshlf committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    f1868fa View commit details
    Browse the repository at this point in the history