Skip to content

Commit ec430fb

Browse files
committed
Fix weird bound issue with array
TODO: We need to take advantage of const generics for arrays....
1 parent 558ef52 commit ec430fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/manually_traced/core.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ macro_rules! trace_array {
149149
target => [T; $size],
150150
params => [T],
151151
null_trace => { where T: NullTrace },
152+
bounds => {
153+
GcRebrand => { where T: GcRebrand<'new_gc, Id>, T::Branded: Sized },
154+
GcErase => { where T: GcErase<'min, Id>, T::Erased: Sized },
155+
},
152156
NEEDS_TRACE => T::NEEDS_TRACE,
153157
NEEDS_DROP => T::NEEDS_DROP,
154158
branded_type => [<T as GcRebrand<'new_gc, Id>>::Branded; $size],

0 commit comments

Comments
 (0)