Skip to content

Commit c54f53b

Browse files
committed
rustdoc: Add path field to doc::moddoc
1 parent 04a2887 commit c54f53b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/rustdoc/doc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type cratedoc = ~{
99
type moddoc = ~{
1010
id: ast_id,
1111
name: str,
12+
path: [str],
1213
brief: option<str>,
1314
desc: option<str>,
1415
mods: modlist,

src/rustdoc/extract.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ fn moddoc_from_mod(
4040
~{
4141
id: id,
4242
name: name,
43+
path: [],
4344
brief: none,
4445
desc: none,
4546
mods: doc::modlist(

src/rustdoc/rustdoc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fn test_run_passes() {
4242
topmod: ~{
4343
id: 0,
4444
name: doc.topmod.name + "two",
45+
path: [],
4546
brief: none,
4647
desc: none,
4748
mods: doc::modlist([]),
@@ -57,6 +58,7 @@ fn test_run_passes() {
5758
topmod: ~{
5859
id: 0,
5960
name: doc.topmod.name + "three",
61+
path: [],
6062
brief: none,
6163
desc: none,
6264
mods: doc::modlist([]),

0 commit comments

Comments
 (0)