From d5e193741361bde503189d827869f1b53db8aa17 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 2 Jun 2015 07:06:43 +0530 Subject: [PATCH] rustup --- gc_plugin/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc_plugin/src/lib.rs b/gc_plugin/src/lib.rs index 3f63eae..bc24ee1 100644 --- a/gc_plugin/src/lib.rs +++ b/gc_plugin/src/lib.rs @@ -24,7 +24,7 @@ pub fn plugin_registrar(reg: &mut Registry) { reg.register_syntax_extension(intern("derive_Trace"), MultiDecorator(box expand_trace)) } -pub fn expand_trace(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: Annotatable, push: &mut FnMut(Annotatable)) { +pub fn expand_trace(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: &Annotatable, push: &mut FnMut(Annotatable)) { let trait_def = TraitDef { span: span, attributes: Vec::new(), @@ -65,7 +65,7 @@ pub fn expand_trace(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: Annota ], associated_types: vec![], }; - trait_def.expand(cx, mitem, &item, push) + trait_def.expand(cx, mitem, item, push) } // Mostly copied from syntax::ext::deriving::hash and Servo's #[jstraceable]