- hir::ItemKind::Const(_, body) |
- hir::ItemKind::Static(_, _, body) =>
- Some((body, None)),
- hir::ItemKind::Fn(ref decl, .., body) =>
- Some((body, Some(decl))),
+ hir::ItemKind::Const(ref ty, body) |
+ hir::ItemKind::Static(ref ty, _, body) =>
+ Some((body, Some(ty), None, None)),
+ hir::ItemKind::Fn(ref decl, ref header, .., body) =>
+ Some((body, None, Some(header), Some(decl))),