ForeignDef items may correspond to functions, statics, or types. Based on rustc_hir::ForeignItem, we need an equivalent of ForeignItemKind.
For these variants:
Fn: Can FnDef be reused?
Static: The existing information on CrateDef should be enough.
Ty: Not sure if it is stable yet (#rust/43467)
Similar to existing kind types, the following changes are expected:
- adding method
foreign_item_kind to Context
- adding method
kind to FnDef calling the method above
ForeignDefitems may correspond to functions, statics, or types. Based onrustc_hir::ForeignItem, we need an equivalent ofForeignItemKind.For these variants:
Fn: CanFnDefbe reused?Static: The existing information onCrateDefshould be enough.Ty: Not sure if it is stable yet (#rust/43467)Similar to existing kind types, the following changes are expected:
foreign_item_kindtoContextkindtoFnDefcalling the method above