mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove generics from unsafe_no_jsmanaged_fields
This commit is contained in:
parent
291a131dd8
commit
f20361179d
3 changed files with 160 additions and 30 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue