build: Add rustdoc to tidy rules
This commit is contained in:
parent
66e97a9b08
commit
16462a77b0
|
@ -95,6 +95,8 @@ tidy:
|
||||||
$(COMPILETEST_INPUTS) \
|
$(COMPILETEST_INPUTS) \
|
||||||
$(CARGO_CRATE) \
|
$(CARGO_CRATE) \
|
||||||
$(CARGO_INPUTS) \
|
$(CARGO_INPUTS) \
|
||||||
|
$(RUSTDOC_CRATE) \
|
||||||
|
$(RUSTDOC_INPUTS) \
|
||||||
| xargs -n 10 python $(S)src/etc/tidy.py
|
| xargs -n 10 python $(S)src/etc/tidy.py
|
||||||
$(Q)echo \
|
$(Q)echo \
|
||||||
$(ALL_TEST_INPUTS) \
|
$(ALL_TEST_INPUTS) \
|
||||||
|
|
|
@ -135,7 +135,8 @@ fn doc_item(rd: rustdoc, item: @ast::item) {
|
||||||
let noargdocs = map::new_str_hash::<str>();
|
let noargdocs = map::new_str_hash::<str>();
|
||||||
for attr: ast::attribute in item.attrs {
|
for attr: ast::attribute in item.attrs {
|
||||||
alt attr.node.value.node {
|
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,
|
_fndoc = some({ brief: value,
|
||||||
desc: none,
|
desc: none,
|
||||||
return: none,
|
return: none,
|
||||||
|
@ -149,7 +150,10 @@ fn doc_item(rd: rustdoc, item: @ast::item) {
|
||||||
|
|
||||||
let _fndoc0 = alt _fndoc {
|
let _fndoc0 = alt _fndoc {
|
||||||
some(_d) { _d }
|
some(_d) { _d }
|
||||||
none. { { brief: "_undocumented_", desc: none, return: none, args: noargdocs } }
|
none. { { brief: "_undocumented_",
|
||||||
|
desc: none,
|
||||||
|
return: none,
|
||||||
|
args: noargdocs } }
|
||||||
};
|
};
|
||||||
|
|
||||||
alt item.node {
|
alt item.node {
|
||||||
|
|
Loading…
Reference in New Issue