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

First attemt at supporting explicit discriminant numbers on tag variants #1397

Closed
wants to merge 2 commits into from

Commits on Jan 10, 2012

  1. Support explicit discriminant numbers on tag variants.

    Addresses issue rust-lang#1393.
    
    For now disallow disr. values unless all variants use nullary
    contractors (i.e. "enum-like").
    
    Disr. values are now encoded in the crate metadata, but only when it
    will differ from the inferred value based on the order.
    kevina committed Jan 10, 2012
    Configuration menu
    Copy the full SHA
    0832d4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    28a5d70 View commit details
    Browse the repository at this point in the history