diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-06 12:21:46 +0530 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-05-20 15:39:02 -0700 |
commit | 4bc9445b9ef4304fffc48276f958a4f922048bdb (patch) | |
tree | 337bd08ed953dc498f13fbd830537ff05fac329d /components/plugins/jstraceable.rs | |
parent | 77099b25d590fdaac76721e7f98f4e83672e64a6 (diff) | |
download | servo-4bc9445b9ef4304fffc48276f958a4f922048bdb.tar.gz servo-4bc9445b9ef4304fffc48276f958a4f922048bdb.zip |
Upgrade rust to 716f920b7e234b450f272346fea961832505c06e (Tue May 19 05:39:29 2015 +0000)
Diffstat (limited to 'components/plugins/jstraceable.rs')
-rw-r--r-- | components/plugins/jstraceable.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs index 0ef1cecea3d..7f4757816e0 100644 --- a/components/plugins/jstraceable.rs +++ b/components/plugins/jstraceable.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use syntax::ext::base::ExtCtxt; +use syntax::ext::base::{Annotatable, ExtCtxt}; use syntax::codemap::Span; use syntax::ptr::P; use syntax::ast::{Item, MetaItem, Expr}; @@ -27,7 +27,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, _: Span, _: &MetaItem, item: P<Item>) /// Provides the hook to expand `#[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. -pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: &Item, push: &mut FnMut(P<Item>)) { +pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: Annotatable, push: &mut FnMut(Annotatable)) { let trait_def = TraitDef { span: span, attributes: Vec::new(), @@ -47,7 +47,7 @@ pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: ], associated_types: vec![], }; - trait_def.expand(cx, mitem, item, push) + trait_def.expand(cx, mitem, &item, push) } // Mostly copied from syntax::ext::deriving::hash |