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-02-20 22:24:59 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-21 16:14:02 -0800
commit8b071ebe4c7cc1e986f15e5dca00c3ee7e31db3a (patch)
tree5a09f48d8f9a9dc4b52bb2fce6e8ba877ac4b044 /src/rustdoc/path_pass.rs
parent1ee139ae1f61309fee44b37034ee1f2a42aba8f1 (diff)
downloadrust-8b071ebe4c7cc1e986f15e5dca00c3ee7e31db3a.tar.gz
rust-8b071ebe4c7cc1e986f15e5dca00c3ee7e31db3a.zip
rustdoc: Make it easy to switch between parallel and sequential folds
Diffstat (limited to 'src/rustdoc/path_pass.rs')
-rw-r--r--src/rustdoc/path_pass.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustdoc/path_pass.rs b/src/rustdoc/path_pass.rs
index bdd7709a3c4..66b6d10f9fa 100644
--- a/src/rustdoc/path_pass.rs
+++ b/src/rustdoc/path_pass.rs
@@ -17,7 +17,7 @@ fn run(srv: astsrv::srv, doc: doc::cratedoc) -> doc::cratedoc {
     let fold = fold::fold({
         fold_item: fold_item,
         fold_mod: fold_mod
-        with *fold::default_par_fold(ctxt)
+        with *fold::default_any_fold(ctxt)
     });
     fold.fold_crate(fold, doc)
 }
@@ -33,7 +33,7 @@ fn fold_mod(fold: fold::fold<ctxt>, doc: doc::moddoc) -> doc::moddoc {
     let is_topmod = doc.id() == rustc::syntax::ast::crate_node_id;
 
     if !is_topmod { vec::push(fold.ctxt.path, doc.name()); }
-    let doc = fold::default_par_fold_mod(fold, doc);
+    let doc = fold::default_any_fold_mod(fold, doc);
     if !is_topmod { vec::pop(fold.ctxt.path); }
 
     {