File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 11use std:: cell:: UnsafeCell ;
2- use std:: marker:: PhantomData ;
32use std:: mem:: MaybeUninit ;
43use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
54use std:: thread;
@@ -45,9 +44,6 @@ pub struct Bounded<T> {
4544
4645 /// If this bit is set in the tail, that means the queue is closed.
4746 mark_bit : usize ,
48-
49- /// Indicates that dropping a `Bounded<T>` may drop values of type `T`.
50- _marker : PhantomData < T > ,
5147}
5248
5349impl < T > Bounded < T > {
@@ -80,7 +76,6 @@ impl<T> Bounded<T> {
8076 mark_bit,
8177 head : CachePadded :: new ( AtomicUsize :: new ( head) ) ,
8278 tail : CachePadded :: new ( AtomicUsize :: new ( tail) ) ,
83- _marker : PhantomData ,
8479 }
8580 }
8681
Original file line number Diff line number Diff line change 11use std:: cell:: UnsafeCell ;
2- use std:: marker:: PhantomData ;
32use std:: mem:: MaybeUninit ;
43use std:: ptr;
54use std:: sync:: atomic:: { AtomicPtr , AtomicUsize , Ordering } ;
@@ -119,9 +118,6 @@ pub struct Unbounded<T> {
119118
120119 /// The tail of the queue.
121120 tail : CachePadded < Position < T > > ,
122-
123- /// Indicates that dropping a `Unbounded<T>` may drop values of type `T`.
124- _marker : PhantomData < T > ,
125121}
126122
127123impl < T > Unbounded < T > {
@@ -136,7 +132,6 @@ impl<T> Unbounded<T> {
136132 block : AtomicPtr :: new ( ptr:: null_mut ( ) ) ,
137133 index : AtomicUsize :: new ( 0 ) ,
138134 } ) ,
139- _marker : PhantomData ,
140135 }
141136 }
142137
You can’t perform that action at this time.
0 commit comments