mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
3f2d747689
commit
a4cbbeef14
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue