Skip to content

Delete struct fields to see if they are used/tested properly #605

Description

@RustyNova016

I got this weird use case where I need to check if removing a field of a struct does trigger a compilation or test failure.

I'm maintaining an API binding crate so I got a lot of structs with a lot of fields, but there's plenty of fields that if I where to remove, both the compilation and the tests wouldn't notice. That indicate a lack of test coverage that I'd really like to have it fixed, and it seems like a great lint for cargo mutants (or at least an optional one)

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions