Have unsafe_no_jsmanaged_fields! macro take a type as argument rather than an ident.

We only write unsafe_no_jsmanaged_fields!(SomeType), and the
documentation says it is to be used for types.
This commit is contained in:
Jonathan Chan 2017-06-27 15:59:00 -07:00
parent 3f2d747689
commit a4cbbeef14

View file

@ -303,7 +303,7 @@ macro_rules! make_nonzero_dimension_setter(
/// For use on non-jsmanaged types /// For use on non-jsmanaged types
/// Use #[derive(JSTraceable)] on JS managed types /// Use #[derive(JSTraceable)] on JS managed types
macro_rules! unsafe_no_jsmanaged_fields( macro_rules! unsafe_no_jsmanaged_fields(
($($ty:ident),+) => ( ($($ty:ty),+) => (
$( $(
#[allow(unsafe_code)] #[allow(unsafe_code)]
unsafe impl $crate::dom::bindings::trace::JSTraceable for $ty { unsafe impl $crate::dom::bindings::trace::JSTraceable for $ty {