From 41320fa52e1e4dd85a200a34195ae32d7efd13e0 Mon Sep 17 00:00:00 2001 From: JLockerman Date: Sun, 8 Oct 2017 18:40:45 -0400 Subject: [PATCH] cfg out Queue::new for emscripten Queue::new is only used is tests atm, which causes warnings on emscripten which does not run queue tests. --- src/libstd/sync/mpsc/spsc_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs index 3ce59270335..45a00978b35 100644 --- a/src/libstd/sync/mpsc/spsc_queue.rs +++ b/src/libstd/sync/mpsc/spsc_queue.rs @@ -76,7 +76,7 @@ impl Node { } impl Queue { - #[cfg(test)] + #[cfg(all(test, not(target_os = "emscripten")))] /// Creates a new queue. /// /// This is unsafe as the type system doesn't enforce a single