Skip to content

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

Description

@adpaco

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions