Future proof the AST for union.

This commit is contained in:
Jeffrey Seyfried
2016-08-29 05:04:31 +00:00
parent c14ff2884d
commit 4fe94e0be6
9 changed files with 24 additions and 4 deletions

View File

@@ -1251,7 +1251,10 @@ impl<'a> State<'a> {
try!(self.head(&visibility_qualified(&item.vis, "struct")));
try!(self.print_struct(&struct_def, generics, item.ident, item.span, true));
}
ast::ItemKind::Union(ref struct_def, ref generics) => {
try!(self.head(&visibility_qualified(&item.vis, "union")));
try!(self.print_struct(&struct_def, generics, item.ident, item.span, true));
}
ast::ItemKind::DefaultImpl(unsafety, ref trait_ref) => {
try!(self.head(""));
try!(self.print_visibility(&item.vis));