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

When truncating a goal, don't truncate the environment #294

Merged
merged 2 commits into from Dec 9, 2019

Commits on Nov 22, 2019

  1. Copy the full SHA
    095cd38 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. add regression test for rust-lang#280

    This test dies with an overflow. With CHALK_DEBUG=1 this death is
    quick, without it, it is slow and painful. The problem is that some of
    the types in the environment are "truncated" and replaced with
    inference variables, but those types are unnormalized
    projections. When we then go to unify the environment found in the
    answer, we end up needing to unify inference variables with
    unnormalized projections -- but the current code creates subgoals
    instead, which leads to an infinite recursion.
    nikomatsakis authored and Nicholas Matsakis committed Dec 9, 2019
    Copy the full SHA
    0b22511 View commit details
    Browse the repository at this point in the history