rustdoc: Run tystr pass before attr pass
This commit is contained in:
parent
daaeac56b1
commit
00afef0bd8
@ -245,9 +245,9 @@ mod test {
|
||||
fn render(source: str) -> str {
|
||||
let srv = astsrv::mk_srv_from_str(source);
|
||||
let doc = extract::from_srv(srv, "");
|
||||
let doc = tystr_pass::mk_pass()(srv, doc);
|
||||
let doc = path_pass::mk_pass()(srv, doc);
|
||||
let doc = attr_pass::mk_pass()(srv, doc);
|
||||
let doc = tystr_pass::mk_pass()(srv, doc);
|
||||
let markdown = write_markdown_str(doc);
|
||||
#debug("markdown: %s", markdown);
|
||||
markdown
|
||||
|
@ -92,11 +92,11 @@ fn run(source_file: str) {
|
||||
let srv = astsrv::mk_srv_from_file(source_file);
|
||||
let doc = extract::from_srv(srv, default_name);
|
||||
run_passes(srv, doc, [
|
||||
attr_pass::mk_pass(),
|
||||
tystr_pass::mk_pass(),
|
||||
path_pass::mk_pass(),
|
||||
attr_pass::mk_pass(),
|
||||
// FIXME: This pass should be optional
|
||||
prune_undoc_pass::mk_pass(),
|
||||
tystr_pass::mk_pass(),
|
||||
gen::mk_pass {|| std::io:: stdout()}
|
||||
]);
|
||||
}
|
Loading…
Reference in New Issue
Block a user