Skip to content

Fix pool::Arc being enabled without atomics. #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Fixed compilation on `thumbv6m-none-eabi` without `portable-atomic` feature.
- Fixed clippy lints.
- Fixed `{arc,box,object}_pool!` emitting clippy lints.
- Fixed the list of implemented data structures in the crate docs, by adding `Deque`,
Expand Down
2 changes: 0 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(warnings)]

use std::{
env,
error::Error,
Expand Down
1 change: 1 addition & 0 deletions src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

mod treiber;

#[cfg(any(feature = "portable-atomic", target_has_atomic = "ptr"))]
pub mod arc;
pub mod boxed;
pub mod object;
1 change: 0 additions & 1 deletion tests/tsan.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![deny(rust_2018_compatibility)]
#![deny(rust_2018_idioms)]
#![deny(warnings)]

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

Expand Down