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

Reduce the genericity of closures in the iterator traits #62429

Merged
merged 24 commits into from
Aug 15, 2019

Commits on Aug 12, 2019

  1. Reduce the genericity of closures in the iterator traits

    By default, closures inherit the generic parameters of their scope,
    including `Self`. However, in most cases, the closures used to implement
    iterators don't need to be generic on the iterator type, only its `Item`
    type. We can reduce this genericity by redirecting such closures through
    local functions.
    
    This does make the closures more cumbersome to write, but it will
    hopefully reduce duplication in their monomorphizations, as well as
    their related type lengths.
    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    e67620a View commit details
    Browse the repository at this point in the history
  2. Use if-let in is_sorted_by

    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    95e2a4f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af1bfbe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6a04c76 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    755c091 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0e300e4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7539fc6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    40ecbc7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9ef95ff View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    27ddbf4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d940ddf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b1fd3d0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ac113f0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    df3d686 View commit details
    Browse the repository at this point in the history
  15. Avoid closures in Peekable

    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    ff60eca View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5902522 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    2d7fc4d View commit details
    Browse the repository at this point in the history
  18. Reduce genericity in Skip

    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    46a62ca View commit details
    Browse the repository at this point in the history
  19. Reduce genericity in Take

    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    0f82c0c View commit details
    Browse the repository at this point in the history
  20. Reduce genericity in Scan

    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    f100354 View commit details
    Browse the repository at this point in the history
  21. Reduce genericity in Inspect

    cuviper committed Aug 12, 2019
    Configuration menu
    Copy the full SHA
    fc4d037 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    9c53396 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c4189a0 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2019

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