Skip to content

Commit 405db5c

Browse files
committed
---
yaml --- r: 184158 b: refs/heads/beta c: 2bcf3a4 h: refs/heads/master v: v3
1 parent 414b8df commit 405db5c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 8dbdcdbfb3d09c6d521b275e71370117850c89e2
34+
refs/heads/beta: 2bcf3a4cd15f706dcb07b1835babeea15b8aa8c1
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: c65fb1a81e5dc58cf171cc47f65de9e6e2119247

branches/beta/src/libarena/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub struct Arena<'longer_than_self> {
9696
head: RefCell<Chunk>,
9797
copy_head: RefCell<Chunk>,
9898
chunks: RefCell<Vec<Chunk>>,
99-
_invariant: marker::InvariantLifetime<'longer_than_self>,
99+
_marker: marker::PhantomData<*mut &'longer_than_self()>,
100100
}
101101

102102
impl<'a> Arena<'a> {
@@ -111,7 +111,7 @@ impl<'a> Arena<'a> {
111111
head: RefCell::new(chunk(initial_size, false)),
112112
copy_head: RefCell::new(chunk(initial_size, true)),
113113
chunks: RefCell::new(Vec::new()),
114-
_invariant: marker::InvariantLifetime,
114+
_marker: marker::PhantomData,
115115
}
116116
}
117117
}
@@ -361,6 +361,8 @@ pub struct TypedArena<T> {
361361
}
362362

363363
struct TypedArenaChunk<T> {
364+
marker: marker::PhantomData<T>,
365+
364366
/// Pointer to the next arena segment.
365367
next: *mut TypedArenaChunk<T>,
366368

0 commit comments

Comments
 (0)