Remove purity from fn_decl and move it out to containing AST elements.
This commit is contained in:
parent
34886ed488
commit
0f996f70a6
27 changed files with 208 additions and 192 deletions
|
@ -83,7 +83,7 @@ fn moddoc_from_mod(
|
|||
nmoddoc_from_mod(itemdoc, nm)
|
||||
))
|
||||
}
|
||||
ast::item_fn(_, _, _) => {
|
||||
ast::item_fn(*) => {
|
||||
some(doc::fntag(
|
||||
fndoc_from_fn(itemdoc)
|
||||
))
|
||||
|
@ -129,7 +129,7 @@ fn nmoddoc_from_mod(
|
|||
fns: do vec::map(module_.items) |item| {
|
||||
let itemdoc = mk_itemdoc(item.id, to_str(item.ident));
|
||||
match item.node {
|
||||
ast::foreign_item_fn(_, _) => {
|
||||
ast::foreign_item_fn(*) => {
|
||||
fndoc_from_fn(itemdoc)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue