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

Handle associated types in const context #70056

Closed
wants to merge 5 commits into from

Commits on Mar 16, 2020

  1. Handle associated types in const context

    When in `const` context (like array lengths) we erase all substs.
    Because of this, we used to emit spurious suggestions to restrict type
    parameters when using associated types on them, even though that would
    never work. Instead, we now signal `const` contexts when evaluating
    traits and emit a more accurate error.
    estebank committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    7d8360f View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Configuration menu
    Copy the full SHA
    9a821e8 View commit details
    Browse the repository at this point in the history
  2. review comment: fix wording

    estebank committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    f00ead1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    84a5706 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2020

  1. Fix check_for_cast

    estebank committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    f02aeae View commit details
    Browse the repository at this point in the history