Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The black_box function can be replaced with std::hint::black_box #700

Open
Spartan2909 opened this issue Jul 11, 2023 · 0 comments · May be fixed by #701
Open

The black_box function can be replaced with std::hint::black_box #700

Spartan2909 opened this issue Jul 11, 2023 · 0 comments · May be fixed by #701

Comments

@Spartan2909
Copy link

Spartan2909 commented Jul 11, 2023

The function std::hint::black_box is a stable wrapper around the same intrinsic that test::black_box uses, and could replace Criterion's own black_box function on all release channels. This function has been stable since 1.66, meaning that the last three minor versions of Rust are supported.

@Spartan2909 Spartan2909 linked a pull request Jul 11, 2023 that will close this issue
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 a pull request may close this issue.

1 participant