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 ICE in MIR pretty printing #59036

Merged
merged 1 commit into from
Mar 16, 2019
Merged

Fix ICE in MIR pretty printing #59036

merged 1 commit into from
Mar 16, 2019

Commits on Mar 10, 2019

  1. Fix ICE in MIR pretty printing

    A `Def::Variant` should be considered as a function in mir pretty
    printing. Each variant has a constructor that we must print.
    
    Given the following enum definition:
    
    ```
    pub enum TestMe {
        X(usize),
    }
    ```
    
    We will need to generate a constructor for the variant `X` with a
    signature that looks something like the following:
    
    ```
    fn TestMe::X(_1: usize) -> TestMe;
    ```
    dlrobertson committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    3a83cb2 View commit details
    Browse the repository at this point in the history