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

Add const generics to ty (and transitive dependencies) #58583

Merged
merged 34 commits into from Mar 7, 2019

Commits on Mar 5, 2019

  1. Add Const generic param to ty

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    62f23c2 View commit details
    Browse the repository at this point in the history
  2. Add ParamConst

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    11c31bb View commit details
    Browse the repository at this point in the history
  3. Add ConstVid

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    a36d386 View commit details
    Browse the repository at this point in the history
  4. Add InferConst

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    8cbbbaa View commit details
    Browse the repository at this point in the history
  5. Add type_flags helper methods to consts

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    386e9fb View commit details
    Browse the repository at this point in the history
  6. Use non_erasable_generics for codegen

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    2ce19ae View commit details
    Browse the repository at this point in the history
  7. Take const generics into account when monomorphising

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    691d054 View commit details
    Browse the repository at this point in the history
  8. Add const kind and UnpackedKind::Const

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    1ebc858 View commit details
    Browse the repository at this point in the history
  9. Add ConstValue::Param and ConstValue::Infer

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    7f2a4f7 View commit details
    Browse the repository at this point in the history
  10. Add type constraints from const parameters

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    f7f60ee View commit details
    Browse the repository at this point in the history
  11. Update diagnostics to include const parameters

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    73a6df6 View commit details
    Browse the repository at this point in the history
  12. Implement Hash for new types

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    9a9aa5b View commit details
    Browse the repository at this point in the history
  13. Stub methods in infer

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    63b7572 View commit details
    Browse the repository at this point in the history
  14. Take const into account in context

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    29c272d View commit details
    Browse the repository at this point in the history
  15. Add const type flags

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    cbf5d22 View commit details
    Browse the repository at this point in the history
  16. Pretty printing for const generics

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    0d1c9c0 View commit details
    Browse the repository at this point in the history
  17. Make a lazy const from a const param

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    f761c41 View commit details
    Browse the repository at this point in the history
  18. Add ast_const_to_const

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    f7cd97f View commit details
    Browse the repository at this point in the history
  19. Refactor compare_method

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    a8361eb View commit details
    Browse the repository at this point in the history
  20. Implement wfcheck for const parameters

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    3001ae7 View commit details
    Browse the repository at this point in the history
  21. Implement collect for const parameters

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    eb2b8be View commit details
    Browse the repository at this point in the history
  22. Stub rustdoc const generics implementations

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    fc0fbe8 View commit details
    Browse the repository at this point in the history
  23. Add HAS_CT_INFER

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    133e776 View commit details
    Browse the repository at this point in the history
  24. Implement structural_impls for const generics

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    2dfde88 View commit details
    Browse the repository at this point in the history
  25. Handle new ConstValue variants in mir

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    8e56729 View commit details
    Browse the repository at this point in the history
  26. Handle const generics in typeck

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    c236c24 View commit details
    Browse the repository at this point in the history
  27. Handle const generics elsewhere

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    54b935b View commit details
    Browse the repository at this point in the history
  28. Update const generics tests

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    4c18ee4 View commit details
    Browse the repository at this point in the history
  29. Update test fallout

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    3e3a421 View commit details
    Browse the repository at this point in the history
  30. Fix negative integer literal test

    Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
    varkor and yodaldevoid committed Mar 5, 2019
    Copy the full SHA
    162405f View commit details
    Browse the repository at this point in the history
  31. Copy the full SHA
    0da0457 View commit details
    Browse the repository at this point in the history
  32. Fix rebase fallout

    varkor committed Mar 5, 2019
    Copy the full SHA
    5c8b3c3 View commit details
    Browse the repository at this point in the history
  33. Make adjustments for comments

    varkor committed Mar 5, 2019
    Copy the full SHA
    ed9227a View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2019

  1. Refactor const_to_op

    varkor committed Mar 6, 2019
    Copy the full SHA
    de4478a View commit details
    Browse the repository at this point in the history