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

Use MaybeUninit to produce more correct layouts #63035

Merged
merged 2 commits into from
Aug 7, 2019

Commits on Jul 29, 2019

  1. Wrap promoted generator fields in MaybeUninit

    This prevents uninhabited fields from "infecting" the abi and
    largest_niche of the generator layout.
    
    This fixes a latent bug, where an uninhabited field could be promoted to
    the generator prefix and cause the entire generator to become
    uninhabited.
    tmandry committed Jul 29, 2019
    Configuration menu
    Copy the full SHA
    6fae7f8 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2019

  1. Add niche-in-generator test

    tmandry committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    9d4ca87 View commit details
    Browse the repository at this point in the history