add comment about restriction of Target::from_def_kind
This commit is contained in:
parent
a31632b30e
commit
88108bd5d9
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ impl 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…
Add table
Add a link
Reference in a new issue