Skip to content

Commit 24bfda5

Browse files
committed
thread scopes are stable now.
1 parent 11929c5 commit 24bfda5

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,5 @@ version = "0.1"
6363
version = ">=0.2.0,<0.4"
6464
optional = true
6565

66-
[build-dependencies]
67-
rustc_version = "0.4.0"
68-
6966
[package.metadata.docs.rs]
7067
all-features = true

build.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use std::{
88
process::{Command, ExitStatus, Stdio},
99
};
1010

11-
use rustc_version::Channel;
12-
1311
fn main() -> Result<(), Box<dyn Error>> {
1412
let target = env::var("TARGET")?;
1513

@@ -90,13 +88,6 @@ fn main() -> Result<(), Box<dyn Error>> {
9088
}
9189
}
9290

93-
if !matches!(
94-
rustc_version::version_meta().unwrap().channel,
95-
Channel::Stable | Channel::Beta
96-
) {
97-
println!("cargo:rustc-cfg=unstable_channel");
98-
}
99-
10091
match compile_probe(ARM_LLSC_PROBE) {
10192
Some(status) if status.success() => println!("cargo:rustc-cfg=arm_llsc"),
10293
_ => {}

tests/tsan.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ fn twice() {
5050
}
5151

5252
#[test]
53-
#[cfg(unstable_channel)]
5453
fn scoped() {
5554
let mut rb: spsc::Queue<i32, 5> = spsc::Queue::new();
5655

@@ -75,7 +74,6 @@ fn scoped() {
7574

7675
#[test]
7776
#[cfg_attr(miri, ignore)] // too slow
78-
#[cfg(unstable_channel)]
7977
fn contention() {
8078
const N: usize = 1024;
8179

@@ -121,7 +119,6 @@ fn contention() {
121119

122120
#[test]
123121
#[cfg_attr(miri, ignore)] // too slow
124-
#[cfg(unstable_channel)]
125122
fn mpmc_contention() {
126123
use std::sync::mpsc;
127124

@@ -172,7 +169,6 @@ fn mpmc_contention() {
172169

173170
#[test]
174171
#[cfg_attr(miri, ignore)] // too slow
175-
#[cfg(unstable_channel)]
176172
fn unchecked() {
177173
const N: usize = 1024;
178174

0 commit comments

Comments
 (0)