mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 04:20:24 +00:00
thread scopes are stable now.
This commit is contained in:
parent
11929c5bcb
commit
24bfda59cb
@ -63,8 +63,5 @@ version = "0.1"
|
||||
version = ">=0.2.0,<0.4"
|
||||
optional = true
|
||||
|
||||
[build-dependencies]
|
||||
rustc_version = "0.4.0"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
9
build.rs
9
build.rs
@ -8,8 +8,6 @@ use std::{
|
||||
process::{Command, ExitStatus, Stdio},
|
||||
};
|
||||
|
||||
use rustc_version::Channel;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let target = env::var("TARGET")?;
|
||||
|
||||
@ -90,13 +88,6 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
}
|
||||
|
||||
if !matches!(
|
||||
rustc_version::version_meta().unwrap().channel,
|
||||
Channel::Stable | Channel::Beta
|
||||
) {
|
||||
println!("cargo:rustc-cfg=unstable_channel");
|
||||
}
|
||||
|
||||
match compile_probe(ARM_LLSC_PROBE) {
|
||||
Some(status) if status.success() => println!("cargo:rustc-cfg=arm_llsc"),
|
||||
_ => {}
|
||||
|
@ -50,7 +50,6 @@ fn twice() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unstable_channel)]
|
||||
fn scoped() {
|
||||
let mut rb: spsc::Queue<i32, 5> = spsc::Queue::new();
|
||||
|
||||
@ -75,7 +74,6 @@ fn scoped() {
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
#[cfg(unstable_channel)]
|
||||
fn contention() {
|
||||
const N: usize = 1024;
|
||||
|
||||
@ -121,7 +119,6 @@ fn contention() {
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
#[cfg(unstable_channel)]
|
||||
fn mpmc_contention() {
|
||||
use std::sync::mpsc;
|
||||
|
||||
@ -172,7 +169,6 @@ fn mpmc_contention() {
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // too slow
|
||||
#[cfg(unstable_channel)]
|
||||
fn unchecked() {
|
||||
const N: usize = 1024;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user