diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-26 20:48:50 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-03 15:59:21 +0000 |
| commit | fea7b59d12ad34f18e03c2c6646cd8971dc2f216 (patch) | |
| tree | 8584b04d04d6dd3c8f3ecb7b79ecc9da158244ba /compiler/rustc_middle/src/query | |
| parent | 17675855094906ba90aca2f119be8fb7afc4d456 (diff) | |
| download | rust-fea7b59d12ad34f18e03c2c6646cd8971dc2f216.tar.gz rust-fea7b59d12ad34f18e03c2c6646cd8971dc2f216.zip | |
Make check_match take a LocalDefId.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 9203dd59a7e..d31b11f0892 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -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. |
