We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 512a113 commit d0af2e3Copy full SHA for d0af2e3
src/manually_traced/core.rs
@@ -223,7 +223,7 @@ unsafe_gc_impl! {
223
*/
224
unsafe_gc_impl! {
225
target => &'a T,
226
- params => ['a, T: 'a],
+ params => ['a, T: ?Sized + 'a],
227
bounds => {
228
Trace => { where T: TraceImmutable },
229
TraceImmutable => { where T: TraceImmutable },
@@ -406,7 +406,7 @@ mod test {
406
assert!(!<Option<(i32, char)> as Trace>::NEEDS_TRACE);
407
// PhantomData is NullTrace regardless of inside
408
assert!(!<PhantomData<Gc<'gc, i32>> as Trace>::NEEDS_TRACE);
409
-
+ assert!(!<&'static [u32] as Trace>::NEEDS_TRACE);
410
}
411
#[derive(Trace)]
412
#[zerogc(collector_ids(EpsilonCollectorId))]
0 commit comments