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 481004d commit 73af1e2Copy full SHA for 73af1e2
src/lib.rs
@@ -224,6 +224,14 @@ unsafe impl<'r, T: Immutable + Trace + HasNoGc> Trace for Option<T> {
224
}
225
226
unsafe impl<T: Immutable + Trace> Trace for Box<T> {
227
+ default fn trace(_: &Self) {}
228
+ default const TRACE_FIELD_COUNT: u8 = 0;
229
+ default const TRACE_TYPE_INFO: GcTypeInfo = GcTypeInfo::new::<Self>();
230
+ default const TRACE_CHILD_TYPE_INFO: [Option<GcTypeInfo>; 8] = [None; 8];
231
+ default fn trace_transitive_type_info(_: &mut Tti) {}
232
+}
233
+
234
+unsafe impl<T: Immutable + Trace + HasNoGc> Trace for Box<T> {
235
fn trace(_: &Self) {}
236
const TRACE_FIELD_COUNT: u8 = 0;
237
const TRACE_TYPE_INFO: GcTypeInfo = GcTypeInfo::new::<Self>();
0 commit comments