about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-05-17 11:36:25 -0700
committerJosh Stone <jistone@redhat.com>2019-05-17 12:16:52 -0700
commitf950193d74d13628537a04728eef25cec642e41b (patch)
tree910a41889d17c9748e0e4551246fc511992a0cad /src/test/run-pass
parentb982867a7349f84c17317599b59aeb5a7d8a83be (diff)
downloadrust-f950193d74d13628537a04728eef25cec642e41b.tar.gz
rust-f950193d74d13628537a04728eef25cec642e41b.zip
Remove the unstable and deprecated mpsc_select
This removes macro `select!` and `std::sync::mpsc::{Handle, Select}`,
which were all unstable and have been deprecated since 1.32.
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/issues/issue-13494.rs35
-rw-r--r--src/test/run-pass/macros/macro-comma-support.rs2
2 files changed, 0 insertions, 37 deletions
diff --git a/src/test/run-pass/issues/issue-13494.rs b/src/test/run-pass/issues/issue-13494.rs
deleted file mode 100644
index 12be97702a9..00000000000
--- a/src/test/run-pass/issues/issue-13494.rs
+++ /dev/null
@@ -1,35 +0,0 @@
-// run-pass
-#![allow(unused_must_use)]
-// ignore-emscripten no threads support
-
-// This test may not always fail, but it can be flaky if the race it used to
-// expose is still present.
-
-#![feature(mpsc_select)]
-#![allow(deprecated)]
-
-use std::sync::mpsc::{channel, Sender, Receiver};
-use std::thread;
-
-fn helper(rx: Receiver<Sender<()>>) {
-    for tx in rx.iter() {
-        let _ = tx.send(());
-    }
-}
-
-fn main() {
-    let (tx, rx) = channel();
-    let t = thread::spawn(move|| { helper(rx) });
-    let (snd, rcv) = channel::<isize>();
-    for _ in 1..100000 {
-        snd.send(1).unwrap();
-        let (tx2, rx2) = channel();
-        tx.send(tx2).unwrap();
-        select! {
-            _ = rx2.recv() => (),
-            _ = rcv.recv() => ()
-        }
-    }
-    drop(tx);
-    t.join();
-}
diff --git a/src/test/run-pass/macros/macro-comma-support.rs b/src/test/run-pass/macros/macro-comma-support.rs
index 904f2e2c7fd..12a612c153a 100644
--- a/src/test/run-pass/macros/macro-comma-support.rs
+++ b/src/test/run-pass/macros/macro-comma-support.rs
@@ -233,8 +233,6 @@ fn println() {
     println!("hello {}", "world",);
 }
 
-// select! is too troublesome and unlikely to be stabilized
-
 // stringify! is N/A
 
 #[cfg(std)]