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

Suppress fallback and ambiguity errors #32258

Merged
merged 7 commits into from
Apr 25, 2016
Merged

Commits on Apr 12, 2016

  1. Suppress fallback and ambiguity errors

    If the infcx has observed other errors, then suppress both default type
    parameter fallback (which can be unreliable, as the full constraint set
    is not available) and errors related to unresovled
    variables (annoyingly, integer type variables cannot currently be
    unified with error, so that has to be a separate mechanism). Also add a
    flag to `infcx` to allow us to independently indicate when we have
    observed an error and hence should trigger this suppression mode.
    nikomatsakis committed Apr 12, 2016
    Configuration menu
    Copy the full SHA
    ccaa2f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a4e0e6b View commit details
    Browse the repository at this point in the history
  3. move checking for unsized target type into cast

    It is odd to have this logic strewn about.  This also means that all
    calls to `type_is_known_to_be_sized` are encapsulated in the
    cast code, in case we want to update that logic.
    nikomatsakis committed Apr 12, 2016
    Configuration menu
    Copy the full SHA
    b023fcc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    47d3b80 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2c9dfaf View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2016

  1. Be a bit more constrained in our early check

    Do not require the target type to be fully known,
    either. This allows code like `let x: *const () = 0 as _` to work
    (see regression test).
    nikomatsakis committed Apr 14, 2016
    Configuration menu
    Copy the full SHA
    89bbd2c View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2016

  1. Configuration menu
    Copy the full SHA
    b3d54a2 View commit details
    Browse the repository at this point in the history