Make check_match take a LocalDefId.
This commit is contained in:
parent
1767585509
commit
fea7b59d12
3 changed files with 7 additions and 11 deletions
|
@ -1114,9 +1114,9 @@ rustc_queries! {
|
|||
desc { "converting literal to mir constant" }
|
||||
}
|
||||
|
||||
query check_match(key: DefId) {
|
||||
desc { |tcx| "match-checking `{}`", tcx.def_path_str(key) }
|
||||
cache_on_disk_if { key.is_local() }
|
||||
query check_match(key: LocalDefId) {
|
||||
desc { |tcx| "match-checking `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
cache_on_disk_if { true }
|
||||
}
|
||||
|
||||
/// Performs part of the privacy check and computes effective visibilities.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue