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 constant propagation for scalar pairs #67015

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Commits on Dec 6, 2019

  1. const-prop: Restrict scalar pair propagation

    We now only propagate a scalar pair if the Rvalue is a tuple with two
    scalars. This for example avoids propagating a (u8, u8) value when
    Rvalue has type `((), u8, u8)` (see the regression test). While this is
    a correct thing to do, implementation is tricky and will be done later.
    
    Fixes rust-lang#66971
    Fixes rust-lang#66339
    Fixes rust-lang#67019
    osa1 committed Dec 6, 2019
    Configuration menu
    Copy the full SHA
    2404a06 View commit details
    Browse the repository at this point in the history