add comment about restriction of Target::from_def_kind
This commit is contained in:
parent
a31632b30e
commit
88108bd5d9
@ -131,6 +131,7 @@ pub fn from_item(item: &Item<'_>) -> Target {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: For now, should only be used with def_kinds from ItemIds
|
||||||
pub fn from_def_kind(def_kind: DefKind) -> Target {
|
pub fn from_def_kind(def_kind: DefKind) -> Target {
|
||||||
match def_kind {
|
match def_kind {
|
||||||
DefKind::ExternCrate => Target::ExternCrate,
|
DefKind::ExternCrate => Target::ExternCrate,
|
||||||
|
Loading…
Reference in New Issue
Block a user