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 regression test for #70155. #70283

Merged
merged 3 commits into from
Mar 24, 2020
Merged

Commits on Mar 22, 2020

  1. Add regression test for rust-lang#70155.

    With rust-lang#70166 merged, `RangeInclusive` now derives `PartialEq` and `Eq`, implementing structural equality and as a side effect the range is now usable with const generics, closing rust-lang#70155.
    
    A test is added to avoid a change to the private fields or the equality implementation of the range from subtly reverting rust-lang#70155.
    CDirkx committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    bd1df44 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2020

  1. Add const generics test for all range types.

    In addition to the regression test of `RangeInclusive` for rust-lang#70155, now all range types are checked for usability within const generics:
    
    - `RangeFrom`
    - `RangeFull`
    - `RangeToInclusive`
    - `RangeTo`
    - `Range`
    
    The test are moved from `test\ui\const-generics\issues\issue-70155` to `test\ui\const-generics\std\range` in anticipation of future similar tests for std types.
    CDirkx committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    f080f94 View commit details
    Browse the repository at this point in the history
  2. Merge tests.

    Merge tests to a single test file.
    CDirkx committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    9fdde0a View commit details
    Browse the repository at this point in the history