about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-18 23:23:10 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-19 00:04:59 -0800
commitc54f53b9d9f67dd4596aac36e59fa6e5d725aaf5 (patch)
tree9f3a131c3fe986c27b43da842926413d052cc1bc
parent04a2887f8791bb080b4e76a55949a7c1954dbb97 (diff)
downloadrust-c54f53b9d9f67dd4596aac36e59fa6e5d725aaf5.tar.gz
rust-c54f53b9d9f67dd4596aac36e59fa6e5d725aaf5.zip
rustdoc: Add path field to doc::moddoc
-rw-r--r--src/rustdoc/doc.rs1
-rw-r--r--src/rustdoc/extract.rs1
-rwxr-xr-xsrc/rustdoc/rustdoc.rs2
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([]),