build: Add rustdoc to tidy rules

This commit is contained in:
Brian Anderson 2012-01-15 14:29:53 -08:00
parent 66e97a9b08
commit 16462a77b0
2 changed files with 8 additions and 2 deletions

View File

@ -95,6 +95,8 @@ tidy:
$(COMPILETEST_INPUTS) \
$(CARGO_CRATE) \
$(CARGO_INPUTS) \
$(RUSTDOC_CRATE) \
$(RUSTDOC_INPUTS) \
| xargs -n 10 python $(S)src/etc/tidy.py
$(Q)echo \
$(ALL_TEST_INPUTS) \

View File

@ -135,7 +135,8 @@ fn doc_item(rd: rustdoc, item: @ast::item) {
let noargdocs = map::new_str_hash::<str>();
for attr: ast::attribute in item.attrs {
alt attr.node.value.node {
ast::meta_name_value("doc", {node: ast::lit_str(value), span: _}) {
ast::meta_name_value(
"doc", {node: ast::lit_str(value), span: _}) {
_fndoc = some({ brief: value,
desc: none,
return: none,
@ -149,7 +150,10 @@ fn doc_item(rd: rustdoc, item: @ast::item) {
let _fndoc0 = alt _fndoc {
some(_d) { _d }
none. { { brief: "_undocumented_", desc: none, return: none, args: noargdocs } }
none. { { brief: "_undocumented_",
desc: none,
return: none,
args: noargdocs } }
};
alt item.node {