aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/jstraceable.rs
diff options
context:
space:
mode:
authorDavid Winslow <cdwinslow@gmail.com>2015-07-01 16:31:07 -0400
committerDavid Winslow <cdwinslow@gmail.com>2015-07-01 18:27:06 -0400
commit4cf46bff2d00f33a8866dc6880c8f6178fdf81a4 (patch)
treebfa5da23abf5d88edd40c26486e34b0cf40383d9 /components/plugins/jstraceable.rs
parente958d92be6c35234bcffce2d4e74ece585de02e4 (diff)
downloadservo-4cf46bff2d00f33a8866dc6880c8f6178fdf81a4.tar.gz
servo-4cf46bff2d00f33a8866dc6880c8f6178fdf81a4.zip
Refactor #[jstraceable] to #[derive(JSTraceable)]
fixes #6524
Diffstat (limited to 'components/plugins/jstraceable.rs')
-rw-r--r--components/plugins/jstraceable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs
index 246a630648b..2d6a71fbcf3 100644
--- a/components/plugins/jstraceable.rs
+++ b/components/plugins/jstraceable.rs
@@ -16,7 +16,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
let mut item2 = (*item).clone();
item2.attrs.push(quote_attr!(cx, #[must_root]));
item2.attrs.push(quote_attr!(cx, #[privatize]));
- item2.attrs.push(quote_attr!(cx, #[jstraceable]));
+ item2.attrs.push(quote_attr!(cx, #[derive(JSTraceable)]));
// The following attributes are only for internal usage
item2.attrs.push(quote_attr!(cx, #[_generate_reflector]));
@@ -30,7 +30,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
}
}
-/// Provides the hook to expand `#[jstraceable]` into an implementation of `JSTraceable`
+/// Provides the hook to expand `#[derive(JSTraceable)]` into an implementation of `JSTraceable`
///
/// The expansion basically calls `trace()` on all of the fields of the struct/enum, erroring if they do not
/// implement the method.