about summary refs log tree commit diff
path: root/src/libsyntax/ext/deriving/bounds.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-05-22 21:10:14 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-05-22 21:10:27 +0530
commit6bc5a924842b6b6ef5607dd90b8045ef5489e536 (patch)
tree95c2d804f170fb4d4ae8daa6b5fcbf660926823b /src/libsyntax/ext/deriving/bounds.rs
parent59ba55ddbd4cfc1fb2bc627ed1e859000b7304db (diff)
downloadrust-6bc5a924842b6b6ef5607dd90b8045ef5489e536.tar.gz
rust-6bc5a924842b6b6ef5607dd90b8045ef5489e536.zip
Let MultiItemDecorator take `&Annotatable` (fixes #25683)
Diffstat (limited to 'src/libsyntax/ext/deriving/bounds.rs')
-rw-r--r--src/libsyntax/ext/deriving/bounds.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/ext/deriving/bounds.rs b/src/libsyntax/ext/deriving/bounds.rs
index 0593de6db07..689a4e96aec 100644
--- a/src/libsyntax/ext/deriving/bounds.rs
+++ b/src/libsyntax/ext/deriving/bounds.rs
@@ -17,7 +17,7 @@ use ext::deriving::generic::ty::*;
 pub fn expand_deriving_unsafe_bound(cx: &mut ExtCtxt,
                                     span: Span,
                                     _: &MetaItem,
-                                    _: Annotatable,
+                                    _: &Annotatable,
                                     _: &mut FnMut(Annotatable))
 {
     cx.span_err(span, "this unsafe trait should be implemented explicitly");
@@ -26,7 +26,7 @@ pub fn expand_deriving_unsafe_bound(cx: &mut ExtCtxt,
 pub fn expand_deriving_copy(cx: &mut ExtCtxt,
                             span: Span,
                             mitem: &MetaItem,
-                            item: Annotatable,
+                            item: &Annotatable,
                             push: &mut FnMut(Annotatable))
 {
     let path = Path::new(vec![
@@ -45,5 +45,5 @@ pub fn expand_deriving_copy(cx: &mut ExtCtxt,
         associated_types: Vec::new(),
     };
 
-    trait_def.expand(cx, mitem, &item, push);
+    trait_def.expand(cx, mitem, item, push);
 }