diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-12-24 23:26:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-24 23:26:00 -0800 |
commit | b5909f26cf4ca255d13bf31b3261e6c9df11a4a1 (patch) | |
tree | 8a230f75b50b260fdb72b85498212c7c9efccb4b | |
parent | 75b3d68fa74ae1b9a090a6dc13dec3b8dca67b89 (diff) | |
parent | 30e4bfec25060ae20c2537367c13b9f6ecaf79ff (diff) | |
download | servo-b5909f26cf4ca255d13bf31b3261e6c9df11a4a1.tar.gz servo-b5909f26cf4ca255d13bf31b3261e6c9df11a4a1.zip |
Auto merge of #14710 - nox:repr-c, r=KiChjang
Mark DOM interfaces as repr(C)
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14710)
<!-- Reviewable:end -->
-rw-r--r-- | components/plugins/jstraceable.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs index f1e0ed496b6..233f90b3bb7 100644 --- a/components/plugins/jstraceable.rs +++ b/components/plugins/jstraceable.rs @@ -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)])); |