From 237d96512a93c72254ece175aed5ced912fbfefe Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 15 Jan 2012 22:49:57 -0800 Subject: [PATCH] rustdoc: Wire up the doc extractor to attribute parser --- src/rustdoc/extract.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/rustdoc/extract.rs b/src/rustdoc/extract.rs index 06450cc2f08..64a8a7389e2 100644 --- a/src/rustdoc/extract.rs +++ b/src/rustdoc/extract.rs @@ -56,15 +56,9 @@ fn fndoc_from_fn( _decl: ast::fn_decl, _typarams: [ast::ty_param], name: ast::ident, - _attrs: [ast::attribute] + attrs: [ast::attribute] ) -> doc::fndoc { - ~{ - name: name, - brief: "todo", - desc: none, - return: none, - args: map::new_str_hash::() - } + attr_parser::parse_fn(name, attrs) } #[cfg(test)]