Remove generics from unsafe_no_jsmanaged_fields

This commit is contained in:
Anthony Ramine 2016-12-06 12:30:09 -10:00
parent 291a131dd8
commit f20361179d
3 changed files with 160 additions and 30 deletions

View file

@ -323,24 +323,6 @@ macro_rules! unsafe_no_jsmanaged_fields(
}
)+
);
($ty:ident<$($gen:ident),+>) => (
#[allow(unsafe_code)]
unsafe impl<$($gen),+> $crate::dom::bindings::trace::JSTraceable for $ty<$($gen),+> {
#[inline]
unsafe fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
// Do nothing
}
}
);
($ty:ident<$($gen:ident: $bound:ident),+>) => (
#[allow(unsafe_code)]
unsafe impl<$($gen: $bound),+> $crate::dom::bindings::trace::JSTraceable for $ty<$($gen),+> {
#[inline]
unsafe fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
// Do nothing
}
}
);
);
/// These are used to generate a event handler which has no special case.