rustdoc: Cleanup
This commit is contained in:
parent
f77458a676
commit
9df0306889
@ -20,24 +20,9 @@ fn run(
|
||||
doc: doc::cratedoc
|
||||
) -> doc::cratedoc {
|
||||
let fold = fold::fold({
|
||||
fold_crate: fn~(
|
||||
f: fold::fold<astsrv::srv>,
|
||||
d: doc::cratedoc
|
||||
) -> doc::cratedoc {
|
||||
fold_crate(f, d)
|
||||
},
|
||||
fold_mod: fn~(
|
||||
f: fold::fold<astsrv::srv>,
|
||||
d: doc::moddoc
|
||||
) -> doc::moddoc {
|
||||
fold_mod(f, d)
|
||||
},
|
||||
fold_fn: fn~(
|
||||
f: fold::fold<astsrv::srv>,
|
||||
d: doc::fndoc
|
||||
) -> doc::fndoc {
|
||||
fold_fn(f, d)
|
||||
}
|
||||
fold_crate: fold_crate,
|
||||
fold_mod: fold_mod,
|
||||
fold_fn: fold_fn
|
||||
with *fold::default_seq_fold(srv)
|
||||
});
|
||||
fold.fold_crate(fold, doc)
|
||||
|
@ -8,30 +8,11 @@ export default_seq_fold_fnlist;
|
||||
|
||||
tag fold<T> = t<T>;
|
||||
|
||||
type fold_crate<T> = fn~(
|
||||
fold: fold<T>,
|
||||
doc: doc::cratedoc
|
||||
) -> doc::cratedoc;
|
||||
|
||||
type fold_mod<T> = fn~(
|
||||
fold: fold<T>,
|
||||
doc: doc::moddoc
|
||||
) -> doc::moddoc;
|
||||
|
||||
type fold_fn<T> = fn~(
|
||||
fold: fold<T>,
|
||||
doc: doc::fndoc
|
||||
) -> doc::fndoc;
|
||||
|
||||
type fold_modlist<T> = fn~(
|
||||
fold: fold<T>,
|
||||
list: doc::modlist
|
||||
) -> doc::modlist;
|
||||
|
||||
type fold_fnlist<T> = fn~(
|
||||
fold: fold<T>,
|
||||
list: doc::fnlist
|
||||
) -> doc::fnlist;
|
||||
type fold_crate<T> = fn~(fold: fold<T>, doc: doc::cratedoc) -> doc::cratedoc;
|
||||
type fold_mod<T> = fn~(fold: fold<T>, doc: doc::moddoc) -> doc::moddoc;
|
||||
type fold_fn<T> = fn~(fold: fold<T>, doc: doc::fndoc) -> doc::fndoc;
|
||||
type fold_modlist<T> = fn~(fold: fold<T>,list: doc::modlist) -> doc::modlist;
|
||||
type fold_fnlist<T> = fn~(fold: fold<T>,list: doc::fnlist) -> doc::fnlist;
|
||||
|
||||
type t<T> = {
|
||||
ctxt: T,
|
||||
|
@ -18,18 +18,8 @@ fn run(
|
||||
mutable have_docs: true
|
||||
};
|
||||
let fold = fold::fold({
|
||||
fold_fn: fn~(
|
||||
f: fold::fold<ctxt>,
|
||||
d: doc::fndoc
|
||||
) -> doc::fndoc {
|
||||
fold_fn(f, d)
|
||||
},
|
||||
fold_fnlist: fn~(
|
||||
f: fold::fold<ctxt>,
|
||||
l: doc::fnlist
|
||||
) -> doc::fnlist {
|
||||
fold_fnlist(f, l)
|
||||
}
|
||||
fold_fn: fold_fn,
|
||||
fold_fnlist: fold_fnlist
|
||||
with *fold::default_seq_fold(ctxt)
|
||||
});
|
||||
fold.fold_crate(fold, doc)
|
||||
|
@ -16,12 +16,7 @@ fn run(
|
||||
doc: doc::cratedoc
|
||||
) -> doc::cratedoc {
|
||||
let fold = fold::fold({
|
||||
fold_fn: fn~(
|
||||
f: fold::fold<astsrv::srv>,
|
||||
d: doc::fndoc
|
||||
) -> doc::fndoc {
|
||||
fold_fn(f, d)
|
||||
}
|
||||
fold_fn: fold_fn
|
||||
with *fold::default_seq_fold(srv)
|
||||
});
|
||||
fold.fold_crate(fold, doc)
|
||||
|
Loading…
Reference in New Issue
Block a user