1
Fork 0

ast::ItemKind::Fn: use ast::FnSig

This commit is contained in:
Mazdak Farrokhzad 2019-11-07 13:33:37 +01:00
parent 2cd48e8a3b
commit b4c6abcf9e
16 changed files with 51 additions and 63 deletions

View file

@ -2433,7 +2433,7 @@ pub enum ItemKind {
/// A function declaration (`fn`).
///
/// E.g., `fn foo(bar: usize) -> usize { .. }`.
Fn(P<FnDecl>, FnHeader, Generics, P<Block>),
Fn(FnSig, Generics, P<Block>),
/// A module declaration (`mod`).
///
/// E.g., `mod foo;` or `mod foo { .. }`.