diff --git a/src/rustdoc/gen.rs b/src/rustdoc/gen.rs index 6924adb2d5e..3fb02eac067 100644 --- a/src/rustdoc/gen.rs +++ b/src/rustdoc/gen.rs @@ -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 diff --git a/src/rustdoc/rustdoc.rs b/src/rustdoc/rustdoc.rs index b1314ecb39b..a34149d4a5a 100755 --- a/src/rustdoc/rustdoc.rs +++ b/src/rustdoc/rustdoc.rs @@ -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()} ]); } \ No newline at end of file