Add #[derive(DenyPublicFields)] back to #[dom_struct]

Oops.
This commit is contained in:
Anthony Ramine 2017-02-15 16:17:57 +01:00
parent 216a89f776
commit 37dab8f9f2

View file

@ -14,6 +14,7 @@ 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