Skip to content

Update criterion to 0.8, and use std::hint::black_box - #43

Merged
allenap merged 1 commit into
masterfrom
criterion-0.8
Aug 7, 2026
Merged

Update criterion to 0.8, and use std::hint::black_box#43
allenap merged 1 commit into
masterfrom
criterion-0.8

Conversation

@allenap

@allenap allenap commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Criterion 0.8 deprecates its own black_box re-export in favour of the one in the standard library, stable since Rust 1.66. Without the change to the benchmarks, cargo clippy --all-targets -- -D warnings fails – and that is exactly what CI runs.

The other dev-dependencies are relaxed to major/minor versions at the same time; the extra patch-level precision wasn't buying us anything.

Criterion 0.8 deprecates its own `black_box` re-export in favour of the one in
the standard library, stable since Rust 1.66. Without the change to the
benchmarks, `cargo clippy --all-targets -- -D warnings` fails – and that is
exactly what CI runs.

The other dev-dependencies are relaxed to major/minor versions at the same
time; the extra patch-level precision wasn't buying us anything.
@allenap
allenap merged commit 3180e0c into master Aug 7, 2026
3 checks passed
@allenap
allenap deleted the criterion-0.8 branch August 7, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant