Closed
Description
ForeignDef
items may correspond to functions, statics, or types. Based on rustc_hir::ForeignItem
, we need an equivalent of ForeignItemKind
.
For these variants:
Fn
: CanFnDef
be reused?Static
: The existing information onCrateDef
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
toContext
- adding method
kind
toFnDef
calling the method above
Metadata
Metadata
Assignees
Labels
No labels