Skip to content

breaking API change in 0.4.4+ - added variant to public + not-non_exhaustive enum #16

Description

@decathorpe

This PR added a new variant to an enum that is not marked as non-exhaustive: #12

cargo semver-checks confirms that this is a breaking change, but it was released as a semver-compatoble patch-release:

$ cargo semver-checks --baseline-version 0.4.3
(...)

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.39.0/src/lints/enum_variant_added.ron

Failed in:
  variant NotifyState:MonotonicUsec in src/lib.rs:80

     Summary semver requires new major version: 1 major and 0 minor checks failed

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