Skip to content

Add tests for Rust subleties #147

@madsmtm

Description

@madsmtm

There are many small ways to break certain semver guarantees, and it would be nice if we could avoid making these mistakes; so let's add some tests to ensure that!

Add tests for:

  • Presence (or absence) of marker traits on types:
    • Send
    • Sync
    • UnwindSafe
    • RefUnwindSafe
    • Unpin
  • Contains interior mutability (e.g. disallowing placing something in a static)
  • Object safety on the traits we expose.
  • Variance of any lifetimes and/or generics we expose.

Possibly also: Integrate cargo-semver-checks in CI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions