turn hir::ItemKind::Fn into a named-field variant

This commit is contained in:
Ralf Jung
2025-01-04 11:30:31 +01:00
parent c528b8c678
commit be65012aa3
65 changed files with 158 additions and 111 deletions

View File

@@ -1646,7 +1646,8 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
};
let Some(ItemLike::Item(Item {
kind: ItemKind::Fn(FnSig { decl, .. }, generics, _), ..
kind: ItemKind::Fn { sig: FnSig { decl, .. }, generics, .. },
..
})) = item
else {
bug!("should be a function item");