@@ -34,7 +34,7 @@ type fndoc = {
34
34
doc = "Function docs extracted from attributes" ,
35
35
_fn = "AST object representing this function" )
36
36
) ]
37
- fn doc_fn ( rd : rustdoc , ident : str , doc : fndoc , _fn : ast:: _fn ) {
37
+ fn doc_fn ( rd : rustdoc , ident : str , doc : fndoc , decl : ast:: fn_decl ) {
38
38
rd. w . write_line ( "## Function `" + ident + "`" ) ;
39
39
rd. w . write_line ( doc. brief ) ;
40
40
alt doc. desc {
@@ -45,7 +45,7 @@ fn doc_fn(rd: rustdoc, ident: str, doc: fndoc, _fn: ast::_fn) {
45
45
}
46
46
none. { }
47
47
}
48
- for arg: ast:: arg in _fn . decl . inputs {
48
+ for arg: ast:: arg in decl. inputs {
49
49
rd. w . write_str ( "### Argument `" + arg. ident + "`: " ) ;
50
50
rd. w . write_line ( "`" + pprust:: ty_to_str ( arg. ty ) + "`" ) ;
51
51
alt doc. args . find ( arg. ident ) {
@@ -55,7 +55,7 @@ fn doc_fn(rd: rustdoc, ident: str, doc: fndoc, _fn: ast::_fn) {
55
55
none. { }
56
56
} ;
57
57
}
58
- rd. w . write_line ( "### Returns `" + pprust:: ty_to_str ( _fn . decl . output ) + "`" ) ;
58
+ rd. w . write_line ( "### Returns `" + pprust:: ty_to_str ( decl. output ) + "`" ) ;
59
59
alt doc. return {
60
60
some ( _r) { rd. w . write_line ( _r) ; }
61
61
none. { }
@@ -152,14 +152,14 @@ fn doc_item(rd: rustdoc, item: @ast::item) {
152
152
153
153
alt item. node {
154
154
ast:: item_const ( ty, expr) { }
155
- ast:: item_fn ( _fn , _) {
156
- doc_fn ( rd, item. ident , _fndoc0, _fn ) ;
155
+ ast:: item_fn ( decl , _ , _) {
156
+ doc_fn ( rd, item. ident , _fndoc0, decl ) ;
157
157
}
158
158
ast:: item_mod ( _mod) { }
159
159
ast:: item_ty ( ty, typarams) { }
160
160
ast:: item_tag ( variant, typarams) { }
161
161
ast:: item_obj ( _obj, typarams, node_id) { }
162
- ast:: item_res ( dtor , dtorid , typarams , ctorid ) { }
162
+ ast:: item_res ( _ , _ , _ , _ , _ ) { }
163
163
} ;
164
164
}
165
165
0 commit comments