Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

output is nondeterministic #297

Open
@dario23

Description

@dario23

during #295 i noticed that there are crates for which rust-semverver output is not deterministic.

  • i'm not sure how similar projects handle this, or if there's something that e.g. compiletest-rs do to make the output more deterministic
  • i guess there might be things we could do on our side to make the output more deterministic, like iterate in sorted order over things etc.
  • there are cases where the number of errors differs, not just the order. i'm not sure if this indicates a general problem with using compile errors/warnings for breaking/non-breaking changes; i.e. i'd assume that how many errors are shown once an initial error has been hit (and it's clear the "compile" won't be successful) is more of a best-effort thing to reduce the number of iterations, and the effort of making things deterministic goes more towards the compiled code than the error messages.

cases i've collected so far

these are all from https://crates.io/crates/async-trait/reverse_dependencies, and i guess the common denominator is that they're big enough™

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions