mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
add comment about restriction of Target::from_def_kind
This commit is contained in:
parent
a31632b30e
commit
88108bd5d9
@ -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 {
|
||||
match def_kind {
|
||||
DefKind::ExternCrate => Target::ExternCrate,
|
||||
|
Loading…
Reference in New Issue
Block a user