Skip to content

Commit

Permalink
no-std: compile error when incompatible features are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis211 committed Feb 7, 2024
1 parent 1ce8a6f commit b77d6ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/strategy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ use core::sync::atomic::AtomicPtr;
use crate::ref_cnt::RefCnt;

pub(crate) mod hybrid;

#[cfg(all(feature = "internal-test-strategies", feature = "experimental-thread-local"))]
compile_error!("experimental-thread-local is incompatible with internal-test-strategies as it enables #[no_std]");

#[cfg(feature = "internal-test-strategies")]
mod rw_lock;
// Do not use from outside of the crate.
Expand Down

0 comments on commit b77d6ba

Please sign in to comment.