Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30)

This commit is contained in:
Manish Goregaokar 2015-06-01 22:03:27 +05:30
parent 2a8d595289
commit f94eced1f5
8 changed files with 333 additions and 225 deletions

View file

@ -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