Skip to content

Implement Arbitrary for Range* #3662

@c410-f3r

Description

@c410-f3r

The Arbitrary trait is not implemented for the set of range-like structures.

  • Range
  • RangeFrom
  • RangeFull
  • RangeInclusive
  • RangeTo
  • RangeToInclusive

The lack of such a feature mandates the manual rolling of intended parameters.

#[kani::proof]
fn foo() {
let start = kani::any();
let end = kani::any();
let _ = std::ops::RangeInclusive::<u8>::new(start, end));

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] Feature / EnhancementA new feature request or enhancement to an existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions