librustc: Remove common fields and nested enums from the language

This commit is contained in:
Patrick Walton
2013-03-28 11:29:21 -07:00
parent 09dc38eda5
commit 0a002d79b4
19 changed files with 36 additions and 159 deletions

View File

@@ -257,9 +257,6 @@ pub fn noop_fold_item_underscore(i: &item_, fld: @ast_fold) -> item_ {
variants: do enum_definition.variants.map |x| {
fld.fold_variant(x)
},
common: do enum_definition.common.map |x| {
fold_struct_def(*x, fld)
}
},
fold_generics(generics, fld))
}
@@ -682,17 +679,6 @@ fn noop_fold_variant(v: &variant_, fld: @ast_fold) -> variant_ {
ctor_id: struct_def.ctor_id.map(|c| fld.new_id(*c))
})
}
enum_variant_kind(ref enum_definition) => {
let variants = do (*enum_definition).variants.map |x| {
fld.fold_variant(x)
};
let common = do (*enum_definition).common.map |x| {
fold_struct_def(*x, fld)
};
kind = enum_variant_kind(
ast::enum_def { variants: variants, common: common }
);
}
}
let fold_attribute = |x| fold_attribute_(x, fld);