Get rustdoc working with std::par instead of its own par library. Closes #2885.
This commit is contained in:
@@ -133,7 +133,7 @@ fn default_par_fold<T:send copy>(ctxt: T) -> fold<T> {
|
||||
|
||||
fn default_seq_fold_doc<T>(fold: fold<T>, doc: doc::doc) -> doc::doc {
|
||||
{
|
||||
pages: do par::seqmap(doc.pages) |page| {
|
||||
pages: do vec::map(doc.pages) |page| {
|
||||
alt page {
|
||||
doc::cratepage(doc) {
|
||||
doc::cratepage(fold.fold_crate(fold, doc))
|
||||
@@ -169,7 +169,7 @@ fn default_any_fold_mod<T:send copy>(
|
||||
) -> doc::moddoc {
|
||||
{
|
||||
item: fold.fold_item(fold, doc.item),
|
||||
items: par::anymap(doc.items, |itemtag, copy fold| {
|
||||
items: par::map(doc.items, |itemtag, copy fold| {
|
||||
fold_itemtag(fold, itemtag)
|
||||
})
|
||||
with doc
|
||||
@@ -182,7 +182,7 @@ fn default_seq_fold_mod<T>(
|
||||
) -> doc::moddoc {
|
||||
{
|
||||
item: fold.fold_item(fold, doc.item),
|
||||
items: par::seqmap(doc.items, |itemtag| {
|
||||
items: vec::map(doc.items, |itemtag| {
|
||||
fold_itemtag(fold, itemtag)
|
||||
})
|
||||
with doc
|
||||
@@ -195,7 +195,7 @@ fn default_par_fold_mod<T:send copy>(
|
||||
) -> doc::moddoc {
|
||||
{
|
||||
item: fold.fold_item(fold, doc.item),
|
||||
items: par::parmap(doc.items, |itemtag, copy fold| {
|
||||
items: par::map(doc.items, |itemtag, copy fold| {
|
||||
fold_itemtag(fold, itemtag)
|
||||
})
|
||||
with doc
|
||||
@@ -208,7 +208,7 @@ fn default_any_fold_nmod<T:send copy>(
|
||||
) -> doc::nmoddoc {
|
||||
{
|
||||
item: fold.fold_item(fold, doc.item),
|
||||
fns: par::anymap(doc.fns, |fndoc, copy fold| {
|
||||
fns: par::map(doc.fns, |fndoc, copy fold| {
|
||||
fold.fold_fn(fold, fndoc)
|
||||
})
|
||||
with doc
|
||||
@@ -221,7 +221,7 @@ fn default_seq_fold_nmod<T>(
|
||||
) -> doc::nmoddoc {
|
||||
{
|
||||
item: fold.fold_item(fold, doc.item),
|
||||
fns: par::seqmap(doc.fns, |fndoc| {
|
||||
fns: vec::map(doc.fns, |fndoc| {
|
||||
fold.fold_fn(fold, fndoc)
|
||||
})
|
||||
with doc
|
||||
@@ -234,7 +234,7 @@ fn default_par_fold_nmod<T:send copy>(
|
||||
) -> doc::nmoddoc {
|
||||
{
|
||||
item: fold.fold_item(fold, doc.item),
|
||||
fns: par::parmap(doc.fns, |fndoc, copy fold| {
|
||||
fns: par::map(doc.fns, |fndoc, copy fold| {
|
||||
fold.fold_fn(fold, fndoc)
|
||||
})
|
||||
with doc
|
||||
|
||||
Reference in New Issue
Block a user