From b35241df0eb368d925581891778ec8a495e097d0 Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Mon, 19 Dec 2022 17:32:29 -0600 Subject: [PATCH] Replace `criterion::black_box` with `std::hint::black_box` --- boa_engine/benches/full.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boa_engine/benches/full.rs b/boa_engine/benches/full.rs index 13e318a288d..043c215946b 100644 --- a/boa_engine/benches/full.rs +++ b/boa_engine/benches/full.rs @@ -1,7 +1,8 @@ //! Benchmarks of the whole execution engine in Boa. use boa_engine::{realm::Realm, Context}; -use criterion::{black_box, criterion_group, criterion_main, Criterion}; +use criterion::{criterion_group, criterion_main, Criterion}; +use std::hint::black_box; #[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))] #[cfg_attr(