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

@ -785,9 +785,6 @@ pub fn print_variant(s: @ps, v: ast::variant) {
let generics = ast_util::empty_generics();
print_struct(s, struct_def, &generics, v.node.name, v.span);
}
ast::enum_variant_kind(ref enum_definition) => {
print_variants(s, (*enum_definition).variants, v.span);
}
}
match v.node.disr_expr {
Some(d) => {