mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 14:00:29 +00:00
Merge pull request #548 from rust-embedded/arc-atomics
Fix `pool::Arc` being enabled without atomics.
This commit is contained in:
commit
717c7b1006
@ -100,6 +100,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed bug in `IndexMap::truncate` that left the map in an inconsistent state.
|
- Fixed bug in `IndexMap::truncate` that left the map in an inconsistent state.
|
||||||
|
- Fixed compilation on `thumbv6m-none-eabi` without `portable-atomic` feature.
|
||||||
- Fixed clippy lints.
|
- Fixed clippy lints.
|
||||||
- Fixed `{arc,box,object}_pool!` emitting clippy lints.
|
- Fixed `{arc,box,object}_pool!` emitting clippy lints.
|
||||||
- Fixed the list of implemented data structures in the crate docs, by adding `Deque`,
|
- Fixed the list of implemented data structures in the crate docs, by adding `Deque`,
|
||||||
|
2
build.rs
2
build.rs
@ -1,5 +1,3 @@
|
|||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
env,
|
env,
|
||||||
error::Error,
|
error::Error,
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
mod treiber;
|
mod treiber;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "portable-atomic", target_has_atomic = "ptr"))]
|
||||||
pub mod arc;
|
pub mod arc;
|
||||||
pub mod boxed;
|
pub mod boxed;
|
||||||
pub mod object;
|
pub mod object;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#![deny(rust_2018_compatibility)]
|
#![deny(rust_2018_compatibility)]
|
||||||
#![deny(rust_2018_idioms)]
|
#![deny(rust_2018_idioms)]
|
||||||
#![deny(warnings)]
|
|
||||||
|
|
||||||
use std::{ptr::addr_of_mut, thread};
|
use std::{ptr::addr_of_mut, thread};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user