From 5a9ff052b4879e4ef6748c2f85563a7db0548c0b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 18 Jun 2020 14:45:19 -0700 Subject: [PATCH] Disable core benches on wasm (benches not supported). --- src/libcore/benches/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcore/benches/lib.rs b/src/libcore/benches/lib.rs index 570fc4ab93390..de4ef7949f344 100644 --- a/src/libcore/benches/lib.rs +++ b/src/libcore/benches/lib.rs @@ -1,3 +1,5 @@ +// wasm32 does not support benches (no time). +#![cfg(not(target_arch = "wasm32"))] #![feature(flt2dec)] #![feature(test)]