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 1
1
use std:: cell:: UnsafeCell ;
2
- use std:: marker:: PhantomData ;
3
2
use std:: mem:: MaybeUninit ;
4
3
use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
5
4
use std:: thread;
@@ -45,9 +44,6 @@ pub struct Bounded<T> {
45
44
46
45
/// If this bit is set in the tail, that means the queue is closed.
47
46
mark_bit : usize ,
48
-
49
- /// Indicates that dropping a `Bounded<T>` may drop values of type `T`.
50
- _marker : PhantomData < T > ,
51
47
}
52
48
53
49
impl < T > Bounded < T > {
@@ -80,7 +76,6 @@ impl<T> Bounded<T> {
80
76
mark_bit,
81
77
head : CachePadded :: new ( AtomicUsize :: new ( head) ) ,
82
78
tail : CachePadded :: new ( AtomicUsize :: new ( tail) ) ,
83
- _marker : PhantomData ,
84
79
}
85
80
}
86
81
Original file line number Diff line number Diff line change 1
1
use std:: cell:: UnsafeCell ;
2
- use std:: marker:: PhantomData ;
3
2
use std:: mem:: MaybeUninit ;
4
3
use std:: ptr;
5
4
use std:: sync:: atomic:: { AtomicPtr , AtomicUsize , Ordering } ;
@@ -119,9 +118,6 @@ pub struct Unbounded<T> {
119
118
120
119
/// The tail of the queue.
121
120
tail : CachePadded < Position < T > > ,
122
-
123
- /// Indicates that dropping a `Unbounded<T>` may drop values of type `T`.
124
- _marker : PhantomData < T > ,
125
121
}
126
122
127
123
impl < T > Unbounded < T > {
@@ -136,7 +132,6 @@ impl<T> Unbounded<T> {
136
132
block : AtomicPtr :: new ( ptr:: null_mut ( ) ) ,
137
133
index : AtomicUsize :: new ( 0 ) ,
138
134
} ) ,
139
- _marker : PhantomData ,
140
135
}
141
136
}
142
137
You can’t perform that action at this time.
0 commit comments