rust: xfail-fast run-pass/cci_no_inline_exe
This commit is contained in:
parent
c0a5e21b29
commit
95099cddcf
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// xfail-fast - check-fast doesn't understand aux-build
|
||||
// aux-build:cci_no_inline_lib.rs
|
||||
|
||||
use std;
|
||||
|
|
Loading…
Reference in New Issue