mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Mark DOM interfaces as repr(C)
This commit is contained in:
parent
dd2aa4195a
commit
30e4bfec25
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
|
|||
let mut item2 = (*item).clone();
|
||||
item2.attrs.push(quote_attr!(cx, #[must_root]));
|
||||
item2.attrs.push(quote_attr!(cx, #[privatize]));
|
||||
item2.attrs.push(quote_attr!(cx, #[repr(C)]));
|
||||
item2.attrs.push(quote_attr!(cx, #[derive(JSTraceable)]));
|
||||
item2.attrs.push(quote_attr!(cx, #[derive(HeapSizeOf)]));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue