diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-15 21:15:43 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-16 10:20:20 +0530 |
commit | 38cbf86c8f0062b1944c99d3b690945109fbaee7 (patch) | |
tree | dbc6049c8c449c3503d6274afb5dd8f33f6fd31e /components/plugins | |
parent | 3f2cbb275be8675a3f3a8504de1761d0e444f256 (diff) | |
download | servo-38cbf86c8f0062b1944c99d3b690945109fbaee7.tar.gz servo-38cbf86c8f0062b1944c99d3b690945109fbaee7.zip |
Make auto-derived JSTraceable have #[inline] methods
Diffstat (limited to 'components/plugins')
-rw-r--r-- | components/plugins/jstraceable.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs index b0a0c98330b..82eb3ba3a05 100644 --- a/components/plugins/jstraceable.rs +++ b/components/plugins/jstraceable.rs @@ -17,7 +17,6 @@ pub fn expand_dom_struct(_: &mut ExtCtxt, _: Span, _: &MetaItem, item: P<Item>) item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("must_root")))); item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("privatize")))); item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("jstraceable")))); - //expand_jstraceable_inner(cx, span, mitem, &*item, |_| ()); P(item2) } @@ -35,7 +34,7 @@ pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: explicit_self: ty::borrowed_explicit_self(), args: vec!(ty::Ptr(box ty::Literal(ty::Path::new(vec!("js","jsapi","JSTracer"))), ty::Raw(ast::MutMutable))), ret_ty: ty::nil_ty(), - attributes: vec!(), + attributes: vec!(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("inline")))), combine_substructure: combine_substructure(|a, b, c| { jstraceable_substructure(a, b, c) }) |