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

Fix emission of niche-filling discriminant values #55701

Merged
merged 1 commit into from
Nov 12, 2018

Commits on Nov 5, 2018

  1. Fix emission of niche-filling discriminant values

    Bug rust-lang#55606 points out a regression introduced by rust-lang#54004; namely that
    an assertion can erroneously fire when a niche-filling discriminant
    value is emitted.
    
    This fixes the bug by removing the assertion, and furthermore by
    arranging for the discriminant value to be masked according to the
    size of the niche.  This makes handling the discriminant a bit simpler
    for debuggers.
    
    The test case is from Jonathan Turner.
    
    Closes rust-lang#55606
    tromey committed Nov 5, 2018
    Configuration menu
    Copy the full SHA
    4d20dd4 View commit details
    Browse the repository at this point in the history