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

Codegen ZSTs without an allocation #123936

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Commits on Apr 17, 2024

  1. Codegen ZSTs without an allocation

    This makes sure that &[] is just as efficient as indirecting through
    unsafe code (from_raw_parts). No new stable guarantee is intended about
    whether or not we do this, this is just an optimization.
    
    Co-authored-by: Ralf Jung <post@ralfj.de>
    Mark-Simulacrum and RalfJung committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    649e801 View commit details
    Browse the repository at this point in the history
  2. Fix broken test

    Testing for ASLR by casting &ZST to *const _ is not useful, there's no
    guarantee that &ZST produces an ASLR'd pointer.
    Mark-Simulacrum committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    9ab6e36 View commit details
    Browse the repository at this point in the history