Make check_match and check_liveness take a LocalDefId

This commit is contained in:
Oli Scherer 2023-02-16 09:34:53 +00:00
parent 1ce80e210d
commit 5bb58a68de
3 changed files with 9 additions and 14 deletions

View file

@ -832,7 +832,7 @@ rustc_queries! {
desc { |tcx| "checking privacy in {}", describe_as_module(key, tcx) }
}
query check_liveness(key: DefId) {
query check_liveness(key: LocalDefId) {
desc { |tcx| "checking liveness of variables in `{}`", tcx.def_path_str(key) }
}
@ -1021,7 +1021,7 @@ rustc_queries! {
}
query check_match(key: LocalDefId) {
desc { |tcx| "match-checking `{}`", tcx.def_path_str(key.to_def_id()) }
desc { |tcx| "match-checking `{}`", tcx.def_path_str(key) }
cache_on_disk_if { true }
}