@@ -687,7 +687,6 @@ mod tests {
687
687
// Tests that Pool implements the "single owner" optimization. That is, the
688
688
// thread that first accesses the pool gets its own copy, while all other
689
689
// threads get distinct copies.
690
- #[ cfg( feature = "std" ) ]
691
690
#[ test]
692
691
fn thread_owner_optimization ( ) {
693
692
use std:: { cell:: RefCell , sync:: Arc , vec} ;
@@ -753,7 +752,6 @@ mod tests {
753
752
// developing a pool since the pool permitted 'get()' to return the same
754
753
// value to the owner thread, even before the previous value was put back
755
754
// into the pool. This in turn resulted in this test producing a data race.
756
- #[ cfg( feature = "std" ) ]
757
755
#[ test]
758
756
fn thread_owner_sync ( ) {
759
757
let pool = Pool :: new ( || vec ! [ 'a' ] ) ;
@@ -788,7 +786,6 @@ mod tests {
788
786
// PoolGuard assumed it was dropped in the same thread from which it was
789
787
// created, and thus used the current thread's ID as the owner, which could
790
788
// be different than the actual owner of the pool.
791
- #[ cfg( feature = "std" ) ]
792
789
#[ test]
793
790
fn thread_owner_send_drop ( ) {
794
791
let pool = Pool :: new ( || vec ! [ 'a' ] ) ;
0 commit comments