Skip to content

Commit

Permalink
remove warning about thread support being experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 6, 2022
1 parent 79244cf commit 23f22ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/shims/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions tests/pass/concurrency/spin_loop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ignore-windows: Concurrency on Windows is not supported yet.
use std::thread;
use std::sync::atomic::{AtomicUsize, Ordering};

Expand Down

0 comments on commit 23f22ec

Please sign in to comment.