]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/console.rs
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / library / test / src / console.rs
index 11c5ab48ed3e8e572faa2b7ade04a105009e197e..9c261e8cc8effcc707744698bf64f9bb10977d84 100644 (file)
@@ -284,7 +284,7 @@ pub fn run_tests_console(opts: &TestOpts, tests: Vec<TestDescAndFn>) -> io::Resu
     // Prevent the usage of `Instant` in some cases:
     // - It's currently not supported for wasm targets.
     // - We disable it for miri because it's not available when isolation is enabled.
-    let is_instant_supported = !cfg!(target_arch = "wasm32") && !cfg!(miri);
+    let is_instant_supported = !cfg!(target_family = "wasm") && !cfg!(miri);
 
     let start_time = is_instant_supported.then(Instant::now);
     run_tests(opts, tests, |x| on_test_event(&x, &mut st, &mut *out))?;