Skip to content

The #[safety_constraint(...)] can be specified without deriving Arbitrary or Invariant #3396

@adpaco-aws

Description

@adpaco-aws

As @zhassan-aws originally posted in #3270 (review)

LGTM. The only thing I'm unsure about is that Invariant is not derived automatically when the attribute is specified. There's also no warning or error message if neither Invariant or Arbitrary is derived.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Z-ContractsIssue related to code contracts[C] Feature / EnhancementA new feature request or enhancement to an existing feature.[E] User ExperienceAn UX enhancement for an existing feature. Including deprecation of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions