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

Introduce ~const #88328

Merged
merged 10 commits into from
Aug 28, 2021
Merged

Introduce ~const #88328

merged 10 commits into from
Aug 28, 2021

Commits on Aug 27, 2021

  1. Introduce ~const

     - [x] Removed `?const` and change uses of `?const`
     - [x] Added `~const` to the AST. It is gated behind const_trait_impl.
     - [x] Validate `~const` in ast_validation.
     - [ ] Add enum `BoundConstness` to the HIR. (With variants `NotConst` and
     `ConstIfConst` allowing future extensions)
     - [ ] Adjust trait selection and pre-existing code to use `BoundConstness`.
     - [ ] Optional steps (*for this PR, obviously*)
          - [ ] Fix rust-lang#88155
          - [ ] Do something with constness bounds in chalk
    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    8660832 View commit details
    Browse the repository at this point in the history
  2. Fix visiting twice

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    1164c94 View commit details
    Browse the repository at this point in the history
  3. Try fixing some tests

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    ff24ac4 View commit details
    Browse the repository at this point in the history
  4. Fix more tests

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    703c557 View commit details
    Browse the repository at this point in the history
  5. Fix rust-lang#88155

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    c75aeaa View commit details
    Browse the repository at this point in the history
  6. Add ty::BoundConstness

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    80e1ee5 View commit details
    Browse the repository at this point in the history
  7. Fix UI test

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    580ca93 View commit details
    Browse the repository at this point in the history
  8. fmt

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    f3d96e9 View commit details
    Browse the repository at this point in the history
  9. Revive tests

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    0a3a608 View commit details
    Browse the repository at this point in the history
  10. Fix rustfmt test

    fee1-dead committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    2d7dbf2 View commit details
    Browse the repository at this point in the history