Skip to content

Semver implications of reordering enum variants #305

@obi1kenobi

Description

@obi1kenobi

Is reordering enum variants considered semver-major, minor, or patch? It definitely could change the outcomes of use of std::mem::discriminant(), but some technically-might-be-breaking changes are not considered semver-major (e.g. adding a method) so I feel this isn't a clear-cut case.

The API evolution RFC does not address this either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: new or existing lintC-enhancementCategory: raise the bar on expectations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions