rustdoc: Move enum docs into the item tag

This commit is contained in:
Brian Anderson
2012-01-28 15:04:36 -08:00
parent 40cbc89b6f
commit d56a4dd04b
11 changed files with 103 additions and 116 deletions

View File

@@ -85,10 +85,6 @@ fn write_mod_contents(
write_const(ctxt, constdoc);
}
for enumdoc in *doc.enums {
write_enum(ctxt, enumdoc);
}
for fndoc in *doc.fns {
write_fn(ctxt, fndoc);
}
@@ -99,6 +95,7 @@ fn write_mod_contents(
for itemtag in doc.items {
alt itemtag {
doc::enumtag(enumdoc) { write_enum(ctxt, enumdoc) }
doc::restag(resdoc) { write_res(ctxt, resdoc) }
}
}