diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2019-12-28 11:24:26 +0000 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2020-02-14 20:12:46 +0000 |
| commit | 43dae91821afd70eeea46bfe0a793321b7e77526 (patch) | |
| tree | 5691780911c66454750c335c4a22d1f2730532bf /src/librustc/query | |
| parent | 60970be1fd67b19cfcdbbc53f5e87ebcbf0b61bf (diff) | |
| download | rust-43dae91821afd70eeea46bfe0a793321b7e77526.tar.gz rust-43dae91821afd70eeea46bfe0a793321b7e77526.zip | |
Give some more queries descriptions
Diffstat (limited to 'src/librustc/query')
| -rw-r--r-- | src/librustc/query/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc/query/mod.rs b/src/librustc/query/mod.rs index 11b079806af..1cc7c7a1c69 100644 --- a/src/librustc/query/mod.rs +++ b/src/librustc/query/mod.rs @@ -125,7 +125,9 @@ rustc_queries! { /// Fetch the MIR for a given `DefId` right after it's built - this includes /// unreachable code. - query mir_built(_: DefId) -> &'tcx Steal<mir::BodyAndCache<'tcx>> {} + query mir_built(_: DefId) -> &'tcx Steal<mir::BodyAndCache<'tcx>> { + desc { "building MIR for" } + } /// Fetch the MIR for a given `DefId` up till the point where it is /// ready for const evaluation. @@ -345,6 +347,7 @@ rustc_queries! { TypeChecking { /// The result of unsafety-checking this `DefId`. query unsafety_check_result(key: DefId) -> mir::UnsafetyCheckResult { + desc { |tcx| "unsafety-checking `{}`", tcx.def_path_str(key) } cache_on_disk_if { key.is_local() } } @@ -414,6 +417,7 @@ rustc_queries! { } query typeck_tables_of(key: DefId) -> &'tcx ty::TypeckTables<'tcx> { + desc { |tcx| "type-checking `{}`", tcx.def_path_str(key) } cache_on_disk_if { key.is_local() } load_cached(tcx, id) { let typeck_tables: Option<ty::TypeckTables<'tcx>> = tcx @@ -453,6 +457,7 @@ rustc_queries! { /// Borrow-checks the function body. If this is a closure, returns /// additional requirements that the closure's creator must verify. query mir_borrowck(key: DefId) -> mir::BorrowCheckResult<'tcx> { + desc { |tcx| "borrow-checking `{}`", tcx.def_path_str(key) } cache_on_disk_if(tcx, _) { key.is_local() && tcx.is_closure(key) } } } |
