rust: xfail-fast run-pass/cci_no_inline_exe

This commit is contained in:
Brian Anderson 2012-03-02 13:44:40 -08:00
parent c0a5e21b29
commit 95099cddcf
5 changed files with 32 additions and 2 deletions

View File

@ -122,14 +122,12 @@ Fields:
* kind - The type of thing being indexed, e.g. 'Module'
* name - The name of the thing
* brief - A description
* link - A format-specific string representing the link target
"]
type index_entry = {
kind: str,
name: str,
brief: str,
link: str
};

View File

@ -0,0 +1,29 @@
#[doc = "Build indexes as appropriate for the markdown pass"];
export mk_pass;
fn mk_pass() -> pass {
{
name: "markdown_index",
f: run
}
}
fn run(_srv: astsrv::srv, doc: doc::cratedoc) -> doc::cratedoc {
doc
}
#[test]
fn should_index_mod_contents() {
}
#[cfg(test)]
mod test {
fn mk_doc(source: str) -> doc::cratedoc {
astsrv::from_str(source) {|srv|
let doc = extract::from_srv(srv, "");
run(srv, doc);
}
}
}

View File

@ -17,6 +17,7 @@ mod parse;
mod extract;
mod attr_parser;
mod doc;
mod markdown_index_pass;
mod markdown_pass;
mod markdown_writer;
mod fold;

View File

@ -147,6 +147,7 @@ fn run(config: config::config) {
unindent_pass::mk_pass(),
sort_item_name_pass::mk_pass(),
sort_item_type_pass::mk_pass(),
markdown_index_pass::mk_pass(),
markdown_pass::mk_pass(config)
]);
}

View File

@ -1,3 +1,4 @@
// xfail-fast - check-fast doesn't understand aux-build
// aux-build:cci_no_inline_lib.rs
use std;