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

ADT simplification #5314

Closed
wants to merge 2 commits into from
Closed

ADT simplification #5314

wants to merge 2 commits into from

Commits on Mar 11, 2013

  1. Simplify struct representation.

    Out goes the extra layer of struct wrapping; the destructedness flag is
    added to the end of the struct.  This means that, if the struct
    previously had alignment padding at the end, the flag will live there
    instead of increasing the struct size.
    jld committed Mar 11, 2013
    Configuration menu
    Copy the full SHA
    e6b5e00 View commit details
    Browse the repository at this point in the history
  2. Get rid of the Unit enum representation.

    The only thing we really lose is that C-like enums with one variant and a
    non-zero discriminant now take up space, but I do not think this is a
    common usage.  As previously noted, that was mostly there for
    transitional compatibility with the pre-adt.rs codebase.
    jld committed Mar 11, 2013
    5 Configuration menu
    Copy the full SHA
    9eaa608 View commit details
    Browse the repository at this point in the history