From bf372a8fbc838e89234adba0339d5f2d1ea5f561 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 6 Jun 2022 18:58:06 -0400 Subject: [PATCH] remove warning about thread support being experimental --- src/shims/unix/thread.rs | 4 ---- tests/pass/concurrency/spin_loop.rs | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/shims/unix/thread.rs b/src/shims/unix/thread.rs index 4dc40cf2fe3d..63b9f36d6ffa 100644 --- a/src/shims/unix/thread.rs +++ b/src/shims/unix/thread.rs @@ -13,10 +13,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx ) -> InterpResult<'tcx, i32> { let this = self.eval_context_mut(); - this.tcx.sess.warn( - "thread support is experimental: the scheduler is not preemptive, and can get stuck in spin loops.\n(see https://github.com/rust-lang/miri/issues/1388)", - ); - // Create the new thread let new_thread_id = this.create_thread(); diff --git a/tests/pass/concurrency/spin_loop.rs b/tests/pass/concurrency/spin_loop.rs index 7d26077bb49f..1e81f5dc86dc 100644 --- a/tests/pass/concurrency/spin_loop.rs +++ b/tests/pass/concurrency/spin_loop.rs @@ -1,3 +1,4 @@ +// ignore-windows: Concurrency on Windows is not supported yet. use std::thread; use std::sync::atomic::{AtomicUsize, Ordering};