Skip to content

Commit 717c7b1

Browse files
authored
Merge pull request #548 from rust-embedded/arc-atomics
Fix `pool::Arc` being enabled without atomics.
2 parents 5225abd + c46858a commit 717c7b1

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
100100
### Fixed
101101

102102
- Fixed bug in `IndexMap::truncate` that left the map in an inconsistent state.
103+
- Fixed compilation on `thumbv6m-none-eabi` without `portable-atomic` feature.
103104
- Fixed clippy lints.
104105
- Fixed `{arc,box,object}_pool!` emitting clippy lints.
105106
- Fixed the list of implemented data structures in the crate docs, by adding `Deque`,

build.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(warnings)]
2-
31
use std::{
42
env,
53
error::Error,

src/pool.rs

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
5555
mod treiber;
5656

57+
#[cfg(any(feature = "portable-atomic", target_has_atomic = "ptr"))]
5758
pub mod arc;
5859
pub mod boxed;
5960
pub mod object;

tests/tsan.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![deny(rust_2018_compatibility)]
22
#![deny(rust_2018_idioms)]
3-
#![deny(warnings)]
43

54
use std::{ptr::addr_of_mut, thread};
65

0 commit comments

Comments
 (0)