File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 73
73
#![ deny( missing_docs) ]
74
74
#![ deny( rust_2018_compatibility) ]
75
75
#![ deny( rust_2018_idioms) ]
76
- // #![deny(warnings)]
77
- #![ allow( warnings) ] // FIXME
76
+ #![ deny( warnings) ]
78
77
79
78
pub use binary_heap:: BinaryHeap ;
80
79
pub use generic_array:: typenum:: consts;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use core::{
7
7
cell:: UnsafeCell ,
8
8
convert:: TryFrom ,
9
9
marker:: PhantomData ,
10
- mem:: { self , MaybeUninit } ,
10
+ mem,
11
11
num:: NonZeroUsize ,
12
12
ptr:: NonNull ,
13
13
sync:: atomic:: { AtomicUsize , Ordering } ,
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ pub use core::ptr::NonNull as Ptr;
4
4
use core:: {
5
5
cell:: UnsafeCell ,
6
6
ptr,
7
- sync:: atomic:: { self , AtomicPtr , Ordering } ,
7
+ sync:: atomic:: { AtomicPtr , Ordering } ,
8
8
} ;
9
9
10
+ /// Unfortunate implementation detail required to use the
11
+ /// [`Pool.grow_exact`](struct.Pool.html#method.grow_exact) method
10
12
pub struct Node < T > {
11
13
next : AtomicPtr < Node < T > > ,
12
14
pub ( crate ) data : UnsafeCell < T > ,
Original file line number Diff line number Diff line change 224
224
//!
225
225
//! 4. "Hazard pointers: Safe memory reclamation for lock-free objects." Michael, Maged M.
226
226
227
- use core:: { any:: TypeId , mem, sync :: atomic :: Ordering } ;
227
+ use core:: { any:: TypeId , mem} ;
228
228
use core:: {
229
- cell:: UnsafeCell ,
230
229
cmp, fmt,
231
230
hash:: { Hash , Hasher } ,
232
231
marker:: PhantomData ,
233
232
mem:: MaybeUninit ,
234
233
ops:: { Deref , DerefMut } ,
235
234
ptr,
236
- sync:: atomic:: AtomicPtr ,
237
235
} ;
238
236
239
237
use as_slice:: { AsMutSlice , AsSlice } ;
@@ -394,7 +392,7 @@ impl<T> Pool<T> {
394
392
}
395
393
396
394
#[ cfg( not( target_arch = "x86_64" ) ) ]
397
- ( ) => self . stack . push ( NonNull :: from ( p) ) ,
395
+ ( ) => self . stack . push ( core :: ptr :: NonNull :: from ( p) ) ,
398
396
}
399
397
}
400
398
cap
You can’t perform that action at this time.
0 commit comments