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

Make the return type of Fn trait an associated type #21019

Merged
merged 14 commits into from
Jan 28, 2015

Commits on Jan 28, 2015

  1. Configuration menu
    Copy the full SHA
    c73a1d0 View commit details
    Browse the repository at this point in the history
  2. Add the notion of normalizing a parameter environment and ensure that

    all parameter environments are normalized. Correspondingly, stop
    normalizing predicates we extract out of the environment. Fixes rust-lang#21664.
    nikomatsakis committed Jan 28, 2015
    Configuration menu
    Copy the full SHA
    c61d788 View commit details
    Browse the repository at this point in the history
  3. Move return type an associated type of the Fn* traits. Mostly this …

    …involves tweaking things in
    
    the compiler that assumed two input types to assume two ouputs; we also have to teach `project.rs`
    to project `Output` from the unboxed closure and fn traits.
    nikomatsakis committed Jan 28, 2015
    Configuration menu
    Copy the full SHA
    07cdb85 View commit details
    Browse the repository at this point in the history
  4. Fix a latent bug in trait dispatch where we sometimes counted associa…

    …ted types
    
    when constructing the vtable-index. Not good.
    nikomatsakis committed Jan 28, 2015
    Configuration menu
    Copy the full SHA
    006f3ea View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7d68250 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    25a2797 View commit details
    Browse the repository at this point in the history
  7. Extract expectations from the projection obligation, which includes

    all relevant information.
    nikomatsakis committed Jan 28, 2015
    Configuration menu
    Copy the full SHA
    47c2d31 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7bd1911 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ac94ae5 View commit details
    Browse the repository at this point in the history
  10. Update test files; mostly the problem is that they were using the

    explicit form `Fn<A,B>` and now should use `Fn(A) -> B` or
    `Fn<A,Output=B>`, but in some cases we get duplicate error
    reports. This is mildly annoying and arises because of the main error
    and another error from the projection. Might be worth squashing those,
    but seems like a separate problem.
    nikomatsakis committed Jan 28, 2015
    Configuration menu
    Copy the full SHA
    09783d1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    aeeab35 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    694432e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    aaf3df3 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    05ffdc5 View commit details
    Browse the repository at this point in the history