about summary refs log tree commit diff
path: root/src/rustdoc/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustdoc/doc.rs')
-rw-r--r--src/rustdoc/doc.rs60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/rustdoc/doc.rs b/src/rustdoc/doc.rs
index 12ee7e6ca70..3665e9cc331 100644
--- a/src/rustdoc/doc.rs
+++ b/src/rustdoc/doc.rs
@@ -3,7 +3,7 @@
 type ast_id = int;
 
 type doc = {
-    pages: [page]
+    pages: [page]/~
 };
 
 enum page {
@@ -41,10 +41,10 @@ enum itemtag {
 type itemdoc = {
     id: ast_id,
     name: str,
-    path: [str],
+    path: [str]/~,
     brief: option<str>,
     desc: option<str>,
-    sections: [section],
+    sections: [section]/~,
     // Indicates that this node is a reexport of a different item
     reexport: bool
 };
@@ -56,13 +56,13 @@ type simpleitemdoc = {
 
 type moddoc = {
     item: itemdoc,
-    items: [itemtag],
+    items: [itemtag]/~,
     index: option<index>
 };
 
 type nmoddoc = {
     item: itemdoc,
-    fns: [fndoc],
+    fns: [fndoc]/~,
     index: option<index>
 };
 
@@ -72,7 +72,7 @@ type fndoc = simpleitemdoc;
 
 type enumdoc = {
     item: itemdoc,
-    variants: [variantdoc]
+    variants: [variantdoc]/~
 };
 
 type variantdoc = {
@@ -83,14 +83,14 @@ type variantdoc = {
 
 type ifacedoc = {
     item: itemdoc,
-    methods: [methoddoc]
+    methods: [methoddoc]/~
 };
 
 type methoddoc = {
     name: str,
     brief: option<str>,
     desc: option<str>,
-    sections: [section],
+    sections: [section]/~,
     sig: option<str>
 };
 
@@ -98,13 +98,13 @@ type impldoc = {
     item: itemdoc,
     iface_ty: option<str>,
     self_ty: option<str>,
-    methods: [methoddoc]
+    methods: [methoddoc]/~
 };
 
 type tydoc = simpleitemdoc;
 
 type index = {
-    entries: [index_entry]
+    entries: [index_entry]/~
 };
 
 #[doc = "
@@ -144,7 +144,7 @@ impl util for doc {
 #[doc = "Some helper methods on moddoc, mostly for testing"]
 impl util for moddoc {
 
-    fn mods() -> [moddoc] {
+    fn mods() -> [moddoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               modtag(moddoc) { some(moddoc) }
@@ -153,7 +153,7 @@ impl util for moddoc {
         }
     }
 
-    fn nmods() -> [nmoddoc] {
+    fn nmods() -> [nmoddoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               nmodtag(nmoddoc) { some(nmoddoc) }
@@ -162,7 +162,7 @@ impl util for moddoc {
         }
     }
 
-    fn fns() -> [fndoc] {
+    fn fns() -> [fndoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               fntag(fndoc) { some(fndoc) }
@@ -171,7 +171,7 @@ impl util for moddoc {
         }
     }
 
-    fn consts() -> [constdoc] {
+    fn consts() -> [constdoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               consttag(constdoc) { some(constdoc) }
@@ -180,7 +180,7 @@ impl util for moddoc {
         }
     }
 
-    fn enums() -> [enumdoc] {
+    fn enums() -> [enumdoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               enumtag(enumdoc) { some(enumdoc) }
@@ -189,7 +189,7 @@ impl util for moddoc {
         }
     }
 
-    fn ifaces() -> [ifacedoc] {
+    fn ifaces() -> [ifacedoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               ifacetag(ifacedoc) { some(ifacedoc) }
@@ -198,7 +198,7 @@ impl util for moddoc {
         }
     }
 
-    fn impls() -> [impldoc] {
+    fn impls() -> [impldoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               impltag(impldoc) { some(impldoc) }
@@ -207,7 +207,7 @@ impl util for moddoc {
         }
     }
 
-    fn types() -> [tydoc] {
+    fn types() -> [tydoc]/~ {
         vec::filter_map(self.items) {|itemtag|
             alt itemtag {
               tytag(tydoc) { some(tydoc) }
@@ -217,9 +217,9 @@ impl util for moddoc {
     }
 }
 
-impl util for [page] {
+impl util for [page]/~ {
 
-    fn mods() -> [moddoc] {
+    fn mods() -> [moddoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(modtag(moddoc)) { some(moddoc) }
@@ -228,7 +228,7 @@ impl util for [page] {
         }
     }
 
-    fn nmods() -> [nmoddoc] {
+    fn nmods() -> [nmoddoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(nmodtag(nmoddoc)) { some(nmoddoc) }
@@ -237,7 +237,7 @@ impl util for [page] {
         }
     }
 
-    fn fns() -> [fndoc] {
+    fn fns() -> [fndoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(fntag(fndoc)) { some(fndoc) }
@@ -246,7 +246,7 @@ impl util for [page] {
         }
     }
 
-    fn consts() -> [constdoc] {
+    fn consts() -> [constdoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(consttag(constdoc)) { some(constdoc) }
@@ -255,7 +255,7 @@ impl util for [page] {
         }
     }
 
-    fn enums() -> [enumdoc] {
+    fn enums() -> [enumdoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(enumtag(enumdoc)) { some(enumdoc) }
@@ -264,7 +264,7 @@ impl util for [page] {
         }
     }
 
-    fn ifaces() -> [ifacedoc] {
+    fn ifaces() -> [ifacedoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(ifacetag(ifacedoc)) { some(ifacedoc) }
@@ -273,7 +273,7 @@ impl util for [page] {
         }
     }
 
-    fn impls() -> [impldoc] {
+    fn impls() -> [impldoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(impltag(impldoc)) { some(impldoc) }
@@ -282,7 +282,7 @@ impl util for [page] {
         }
     }
 
-    fn types() -> [tydoc] {
+    fn types() -> [tydoc]/~ {
         vec::filter_map(self) {|page|
             alt page {
               itempage(tytag(tydoc)) { some(tydoc) }
@@ -344,7 +344,7 @@ impl util<A:item> for A {
         self.item().name
     }
 
-    fn path() -> [str] {
+    fn path() -> [str]/~ {
         self.item().path
     }
 
@@ -356,7 +356,7 @@ impl util<A:item> for A {
         self.item().desc
     }
 
-    fn sections() -> [section] {
+    fn sections() -> [section]/~ {
         self.item().sections
     }
-}
\ No newline at end of file
+}