Iterate to encode def_kind.
This commit is contained in:
parent
c58a6fa422
commit
a185cdbc59
6 changed files with 57 additions and 72 deletions
|
@ -878,7 +878,7 @@ rustc_queries! {
|
|||
cache_on_disk_if { true }
|
||||
}
|
||||
|
||||
query def_kind(def_id: DefId) -> DefKind {
|
||||
query opt_def_kind(def_id: DefId) -> Option<DefKind> {
|
||||
desc { |tcx| "looking up definition kind of `{}`", tcx.def_path_str(def_id) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue