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 7373#![ deny( missing_docs) ]
7474#![ deny( rust_2018_compatibility) ]
7575#![ deny( rust_2018_idioms) ]
76- // #![deny(warnings)]
77- #![ allow( warnings) ] // FIXME
76+ #![ deny( warnings) ]
7877
7978pub use binary_heap:: BinaryHeap ;
8079pub use generic_array:: typenum:: consts;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use core::{
77 cell:: UnsafeCell ,
88 convert:: TryFrom ,
99 marker:: PhantomData ,
10- mem:: { self , MaybeUninit } ,
10+ mem,
1111 num:: NonZeroUsize ,
1212 ptr:: NonNull ,
1313 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;
44use core:: {
55 cell:: UnsafeCell ,
66 ptr,
7- sync:: atomic:: { self , AtomicPtr , Ordering } ,
7+ sync:: atomic:: { AtomicPtr , Ordering } ,
88} ;
99
10+ /// Unfortunate implementation detail required to use the
11+ /// [`Pool.grow_exact`](struct.Pool.html#method.grow_exact) method
1012pub struct Node < T > {
1113 next : AtomicPtr < Node < T > > ,
1214 pub ( crate ) data : UnsafeCell < T > ,
Original file line number Diff line number Diff line change 224224//!
225225//! 4. "Hazard pointers: Safe memory reclamation for lock-free objects." Michael, Maged M.
226226
227- use core:: { any:: TypeId , mem, sync :: atomic :: Ordering } ;
227+ use core:: { any:: TypeId , mem} ;
228228use core:: {
229- cell:: UnsafeCell ,
230229 cmp, fmt,
231230 hash:: { Hash , Hasher } ,
232231 marker:: PhantomData ,
233232 mem:: MaybeUninit ,
234233 ops:: { Deref , DerefMut } ,
235234 ptr,
236- sync:: atomic:: AtomicPtr ,
237235} ;
238236
239237use as_slice:: { AsMutSlice , AsSlice } ;
@@ -394,7 +392,7 @@ impl<T> Pool<T> {
394392 }
395393
396394 #[ cfg( not( target_arch = "x86_64" ) ) ]
397- ( ) => self . stack . push ( NonNull :: from ( p) ) ,
395+ ( ) => self . stack . push ( core :: ptr :: NonNull :: from ( p) ) ,
398396 }
399397 }
400398 cap
You can’t perform that action at this time.
0 commit comments