diff --git a/mk/tests.mk b/mk/tests.mk index 6359713741f..8f1e6f23576 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -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) \ diff --git a/src/rustdoc/rustdoc.rs b/src/rustdoc/rustdoc.rs index 95a25507766..1635d1062fd 100755 --- a/src/rustdoc/rustdoc.rs +++ b/src/rustdoc/rustdoc.rs @@ -135,7 +135,8 @@ fn doc_item(rd: rustdoc, item: @ast::item) { let noargdocs = map::new_str_hash::(); 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 {