diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-18 23:23:10 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-19 00:04:59 -0800 |
| commit | c54f53b9d9f67dd4596aac36e59fa6e5d725aaf5 (patch) | |
| tree | 9f3a131c3fe986c27b43da842926413d052cc1bc | |
| parent | 04a2887f8791bb080b4e76a55949a7c1954dbb97 (diff) | |
| download | rust-c54f53b9d9f67dd4596aac36e59fa6e5d725aaf5.tar.gz rust-c54f53b9d9f67dd4596aac36e59fa6e5d725aaf5.zip | |
rustdoc: Add path field to doc::moddoc
| -rw-r--r-- | src/rustdoc/doc.rs | 1 | ||||
| -rw-r--r-- | src/rustdoc/extract.rs | 1 | ||||
| -rwxr-xr-x | src/rustdoc/rustdoc.rs | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/rustdoc/doc.rs b/src/rustdoc/doc.rs index d811eaf13c6..7d06da03228 100644 --- a/src/rustdoc/doc.rs +++ b/src/rustdoc/doc.rs @@ -9,6 +9,7 @@ type cratedoc = ~{ type moddoc = ~{ id: ast_id, name: str, + path: [str], brief: option<str>, desc: option<str>, mods: modlist, diff --git a/src/rustdoc/extract.rs b/src/rustdoc/extract.rs index 08f437a44c0..a636e6219c4 100644 --- a/src/rustdoc/extract.rs +++ b/src/rustdoc/extract.rs @@ -40,6 +40,7 @@ fn moddoc_from_mod( ~{ id: id, name: name, + path: [], brief: none, desc: none, mods: doc::modlist( diff --git a/src/rustdoc/rustdoc.rs b/src/rustdoc/rustdoc.rs index 6406c2f1df0..71888880f2f 100755 --- a/src/rustdoc/rustdoc.rs +++ b/src/rustdoc/rustdoc.rs @@ -42,6 +42,7 @@ fn test_run_passes() { topmod: ~{ id: 0, name: doc.topmod.name + "two", + path: [], brief: none, desc: none, mods: doc::modlist([]), @@ -57,6 +58,7 @@ fn test_run_passes() { topmod: ~{ id: 0, name: doc.topmod.name + "three", + path: [], brief: none, desc: none, mods: doc::modlist([]), |
