rustdoc: Add a pass that extracts brief docs from long docs

If the first paragraph of documentation is short then it will be used as the
brief description.
This commit is contained in:
Brian Anderson
2012-01-24 17:19:27 -08:00
parent 2d84b481de
commit cb44fa2a21
3 changed files with 221 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ fn run(source_file: str) {
attr_pass::mk_pass(),
// FIXME: This pass should be optional
prune_undoc_pass::mk_pass(),
desc_to_brief_pass::mk_pass(),
gen::mk_pass {|| std::io:: stdout()}
]);
}