Skip to content

Commit 4e0ffd0

Browse files
committed
---
yaml --- r: 14587 b: refs/heads/try c: 95099cd h: refs/heads/master i: 14585: 5927caf 14583: 3bf5057 v: v3
1 parent a88412b commit 4e0ffd0

File tree

6 files changed

+33
-3
lines changed

6 files changed

+33
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: c0a5e21b29ca6a9901180451f0b31210b9a5bc84
5+
refs/heads/try: 95099cddcf2691fcbb389db657c70cf80d776918
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustdoc/doc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,12 @@ Fields:
122122
123123
* kind - The type of thing being indexed, e.g. 'Module'
124124
* name - The name of the thing
125-
* brief - A description
126125
* link - A format-specific string representing the link target
127126
128127
"]
129128
type index_entry = {
130129
kind: str,
131130
name: str,
132-
brief: str,
133131
link: str
134132
};
135133

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#[doc = "Build indexes as appropriate for the markdown pass"];
2+
3+
export mk_pass;
4+
5+
fn mk_pass() -> pass {
6+
{
7+
name: "markdown_index",
8+
f: run
9+
}
10+
}
11+
12+
fn run(_srv: astsrv::srv, doc: doc::cratedoc) -> doc::cratedoc {
13+
doc
14+
}
15+
16+
#[test]
17+
fn should_index_mod_contents() {
18+
19+
}
20+
21+
#[cfg(test)]
22+
mod test {
23+
fn mk_doc(source: str) -> doc::cratedoc {
24+
astsrv::from_str(source) {|srv|
25+
let doc = extract::from_srv(srv, "");
26+
run(srv, doc);
27+
}
28+
}
29+
}

branches/try/src/rustdoc/rustdoc.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod parse;
1717
mod extract;
1818
mod attr_parser;
1919
mod doc;
20+
mod markdown_index_pass;
2021
mod markdown_pass;
2122
mod markdown_writer;
2223
mod fold;

branches/try/src/rustdoc/rustdoc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ fn run(config: config::config) {
147147
unindent_pass::mk_pass(),
148148
sort_item_name_pass::mk_pass(),
149149
sort_item_type_pass::mk_pass(),
150+
markdown_index_pass::mk_pass(),
150151
markdown_pass::mk_pass(config)
151152
]);
152153
}

branches/try/src/test/run-pass/cci_no_inline_exe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// xfail-fast - check-fast doesn't understand aux-build
12
// aux-build:cci_no_inline_lib.rs
23

34
use std;

0 commit comments

Comments
 (0)