mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add #[derive(DenyPublicFields)] back to #[dom_struct]
Oops.
This commit is contained in:
parent
216a89f776
commit
37dab8f9f2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue