make dom_struct derive HeapSizeOf,

closes #7357
This commit is contained in:
João Oliveira 2015-08-25 16:38:56 +01:00
parent af4c3901d8
commit fd87c8cb3e
155 changed files with 3 additions and 226 deletions

View file

@ -17,6 +17,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
item2.attrs.push(quote_attr!(cx, #[must_root]));
item2.attrs.push(quote_attr!(cx, #[privatize]));
item2.attrs.push(quote_attr!(cx, #[derive(JSTraceable)]));
item2.attrs.push(quote_attr!(cx, #[derive(HeapSizeOf)]));
// The following attributes are only for internal usage
item2.attrs.push(quote_attr!(cx, #[_generate_reflector]));