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

MIR generation cleanup #59560

Merged
merged 3 commits into from
Apr 25, 2019
Merged

Commits on Apr 24, 2019

  1. Remove incorrect debug assertion in interpret

    Cast type may be a subtype of the destination type. There is a later
    assertion that they have the same layout.
    matthewjasper committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    eb37c64 View commit details
    Browse the repository at this point in the history
  2. Allow subtyping of the final expression of a constant

    Fixes an ICE for the following code:
    
    fn foo(_ : &()) {}
    static X: fn(&'static ()) = foo;
    matthewjasper committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    ff4d4b2 View commit details
    Browse the repository at this point in the history
  3. Evaluate hair::ExprKind::Use in into

    This avoids some unnecessary moves
    matthewjasper committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    e9c687b View commit details
    Browse the repository at this point in the history