File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ pub struct Arena<'longer_than_self> {
96
96
head : RefCell < Chunk > ,
97
97
copy_head : RefCell < Chunk > ,
98
98
chunks : RefCell < Vec < Chunk > > ,
99
- _invariant : marker:: InvariantLifetime < ' longer_than_self > ,
99
+ _marker : marker:: PhantomData < * mut & ' longer_than_self ( ) > ,
100
100
}
101
101
102
102
impl < ' a > Arena < ' a > {
@@ -111,7 +111,7 @@ impl<'a> Arena<'a> {
111
111
head : RefCell :: new ( chunk ( initial_size, false ) ) ,
112
112
copy_head : RefCell :: new ( chunk ( initial_size, true ) ) ,
113
113
chunks : RefCell :: new ( Vec :: new ( ) ) ,
114
- _invariant : marker:: InvariantLifetime ,
114
+ _marker : marker:: PhantomData ,
115
115
}
116
116
}
117
117
}
@@ -361,6 +361,8 @@ pub struct TypedArena<T> {
361
361
}
362
362
363
363
struct TypedArenaChunk < T > {
364
+ marker : marker:: PhantomData < T > ,
365
+
364
366
/// Pointer to the next arena segment.
365
367
next : * mut TypedArenaChunk < T > ,
366
368
You can’t perform that action at this time.
0 commit comments