diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-01 22:03:27 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-01 22:03:27 +0530 |
commit | f94eced1f51144026d432f73edcdccd1a048b1e0 (patch) | |
tree | 1074e29bb9dc4352d6c0cf0b42cc4c63855869b3 /components/plugins/reflector.rs | |
parent | 2a8d5952892e050a3d604741dd1007e3bd563315 (diff) | |
download | servo-f94eced1f51144026d432f73edcdccd1a048b1e0.tar.gz servo-f94eced1f51144026d432f73edcdccd1a048b1e0.zip |
Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30)
Diffstat (limited to 'components/plugins/reflector.rs')
-rw-r--r-- | components/plugins/reflector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/reflector.rs b/components/plugins/reflector.rs index f9df9b22c20..68a6011e7d4 100644 --- a/components/plugins/reflector.rs +++ b/components/plugins/reflector.rs @@ -9,9 +9,9 @@ use syntax::ast; use utils::match_ty_unwrap; -pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable: Annotatable, +pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable: &Annotatable, push: &mut FnMut(Annotatable)) { - if let Annotatable::Item(item) = annotatable { + if let &Annotatable::Item(ref item) = annotatable { if let ast::ItemStruct(ref def, _) = item.node { let struct_name = item.ident; // This path has to be hardcoded, unfortunately, since we can't resolve paths at expansion time |