Iterate to encode def_kind.

This commit is contained in:
Camille GILLOT 2021-01-16 14:35:16 +01:00
parent c58a6fa422
commit a185cdbc59
6 changed files with 57 additions and 72 deletions

View file

@ -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) }
}