about summary refs log tree commit diff
path: root/src/rustdoc/path_pass.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-04 13:29:32 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-04 15:47:04 -0700
commit200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc (patch)
treed2a2e790b95f73e30320d1e49b0566423ecb17a1 /src/rustdoc/path_pass.rs
parentef880f22450c4f7e455f431ff4603f90d443b545 (diff)
downloadrust-200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc.tar.gz
rust-200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc.zip
Remove 'with'
Diffstat (limited to 'src/rustdoc/path_pass.rs')
-rw-r--r--src/rustdoc/path_pass.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rustdoc/path_pass.rs b/src/rustdoc/path_pass.rs
index f1a882ab7cb..23cd67cf875 100644
--- a/src/rustdoc/path_pass.rs
+++ b/src/rustdoc/path_pass.rs
@@ -26,16 +26,16 @@ fn run(srv: astsrv::srv, doc: doc::doc) -> doc::doc {
     let fold = fold::fold({
         fold_item: fold_item,
         fold_mod: fold_mod,
-        fold_nmod: fold_nmod
-        with *fold::default_any_fold(ctxt)
+        fold_nmod: fold_nmod,
+        .. *fold::default_any_fold(ctxt)
     });
     fold.fold_doc(fold, doc)
 }
 
 fn fold_item(fold: fold::fold<ctxt>, doc: doc::itemdoc) -> doc::itemdoc {
     {
-        path: fold.ctxt.path
-        with doc
+        path: fold.ctxt.path,
+        .. doc
     }
 }
 
@@ -48,8 +48,8 @@ fn fold_mod(fold: fold::fold<ctxt>, doc: doc::moddoc) -> doc::moddoc {
     if !is_topmod { vec::pop(fold.ctxt.path); }
 
     doc::moddoc_({
-        item: fold.fold_item(fold, doc.item)
-        with *doc
+        item: fold.fold_item(fold, doc.item),
+        .. *doc
     })
 }
 
@@ -59,8 +59,8 @@ fn fold_nmod(fold: fold::fold<ctxt>, doc: doc::nmoddoc) -> doc::nmoddoc {
     vec::pop(fold.ctxt.path);
 
     {
-        item: fold.fold_item(fold, doc.item)
-        with doc
+        item: fold.fold_item(fold, doc.item),
+        .. doc
     }
 }