Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, CI runs `cargo check --all --bins --tests --benches` on our MSRV. This is failing, because the latest `criterion` version now depends on a revision of `bitflags` that doesn't build on Rust 1.42.0 (due to `const fn`s not being const on 1.42.0). We *could* solve this by bumping our MSRV to a version where the appropriate functions are `const fn`, or we could use a `=` dependency to pin to a specific older version of `bitflags` that compiles on 1.42.0. However, both of these solutions seem kind of unfortunate. This commit just removes the `--benches` from the MSRV `cargo check` run. The benchmarks are an internal development tool, not an officially supported part of `tracing`. Users on 1.42.0 can still depend on `tracing` and use it in their code even if the benchmarks don't compile on their (fairly old) Rust version. Therefore, it should be fine to just remove the benchmarks from the MSRV check. I split the MSRV and stable `cargo check` jobs into separate jobs, so we still check that commits don't break the benchmarks on stable Rust. Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information