Skip to content

Commit 88108bd

Browse files
committed
add comment about restriction of Target::from_def_kind
1 parent a31632b commit 88108bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_hir/src/target.rs

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ impl Target {
131131
}
132132
}
133133

134+
// FIXME: For now, should only be used with def_kinds from ItemIds
134135
pub fn from_def_kind(def_kind: DefKind) -> Target {
135136
match def_kind {
136137
DefKind::ExternCrate => Target::ExternCrate,

0 commit comments

Comments
 (0)