rustdoc: Add a pass to prune undocumented items

This commit is contained in:
Brian Anderson
2012-01-16 22:50:00 -08:00
parent ba41342279
commit b8840cbee6
4 changed files with 71 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ fn run(source_file: str) {
let doc = extract::from_srv(srv, default_name);
let doc = run_passes(srv, doc, [
attr_pass::run,
// FIXME: This pass should be optional
prune_undoc_pass::run,
tystr_pass::run
]);
gen::write_markdown(doc, std::io::stdout());