rustdoc: Wire up the doc extractor to attribute parser
This commit is contained in:
parent
763f3c4d5b
commit
237d96512a
1 changed files with 2 additions and 8 deletions
|
@ -56,15 +56,9 @@ fn fndoc_from_fn(
|
||||||
_decl: ast::fn_decl,
|
_decl: ast::fn_decl,
|
||||||
_typarams: [ast::ty_param],
|
_typarams: [ast::ty_param],
|
||||||
name: ast::ident,
|
name: ast::ident,
|
||||||
_attrs: [ast::attribute]
|
attrs: [ast::attribute]
|
||||||
) -> doc::fndoc {
|
) -> doc::fndoc {
|
||||||
~{
|
attr_parser::parse_fn(name, attrs)
|
||||||
name: name,
|
|
||||||
brief: "todo",
|
|
||||||
desc: none,
|
|
||||||
return: none,
|
|
||||||
args: map::new_str_hash::<str>()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue