diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-20 22:24:59 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-21 16:14:02 -0800 |
| commit | 8b071ebe4c7cc1e986f15e5dca00c3ee7e31db3a (patch) | |
| tree | 5a09f48d8f9a9dc4b52bb2fce6e8ba877ac4b044 /src/rustdoc/path_pass.rs | |
| parent | 1ee139ae1f61309fee44b37034ee1f2a42aba8f1 (diff) | |
| download | rust-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.rs | 4 |
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); } { |
