diff options
author | Jonathan Chan <jyc@eqv.io> | 2017-06-27 15:59:00 -0700 |
---|---|---|
committer | Jonathan Chan <jyc@eqv.io> | 2017-06-27 15:59:00 -0700 |
commit | a4cbbeef14071419120b2732b6664b38caf7a285 (patch) | |
tree | ae353ee3862a89e36cfd86b0156b4df270732425 /components/script/dom/macros.rs | |
parent | 3f2d7476890bffdaad6fdc0e66aa7ac7bc995a87 (diff) | |
download | servo-a4cbbeef14071419120b2732b6664b38caf7a285.tar.gz servo-a4cbbeef14071419120b2732b6664b38caf7a285.zip |
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.
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r-- | components/script/dom/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index 14c05bd3cee..5bf3257d1d1 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -303,7 +303,7 @@ macro_rules! make_nonzero_dimension_setter( /// For use on non-jsmanaged types /// Use #[derive(JSTraceable)] on JS managed types macro_rules! unsafe_no_jsmanaged_fields( - ($($ty:ident),+) => ( + ($($ty:ty),+) => ( $( #[allow(unsafe_code)] unsafe impl $crate::dom::bindings::trace::JSTraceable for $ty { |