aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/jstraceable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/jstraceable.rs')
-rw-r--r--components/plugins/jstraceable.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs
index 9bc9ead6299..071a0b54fdc 100644
--- a/components/plugins/jstraceable.rs
+++ b/components/plugins/jstraceable.rs
@@ -14,10 +14,8 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
item2.attrs.push(quote_attr!(cx, #[repr(C)]));
item2.attrs.push(quote_attr!(cx, #[derive(JSTraceable)]));
item2.attrs.push(quote_attr!(cx, #[derive(HeapSizeOf)]));
+ item2.attrs.push(quote_attr!(cx, #[derive(DenyPublicFields)]));
item2.attrs.push(quote_attr!(cx, #[derive(DomObject)]));
- // #[dom_struct] gets consumed, so this lets us keep around a residue
- // Do NOT register a modifier/decorator on this attribute
- item2.attrs.push(quote_attr!(cx, #[_dom_struct_marker]));
Annotatable::Item(P(item2))
} else {
cx.span_err(sp, "#[dom_struct] applied to something other than a struct");