@@ -113,7 +113,9 @@ rustc_queries! {
113
113
114
114
/// Fetch the MIR for a given `DefId` right after it's built - this includes
115
115
/// unreachable code.
116
- query mir_built( _: DefId ) -> & ' tcx Steal <mir:: BodyAndCache <' tcx>> { }
116
+ query mir_built( _: DefId ) -> & ' tcx Steal <mir:: BodyAndCache <' tcx>> {
117
+ desc { "building MIR for" }
118
+ }
117
119
118
120
/// Fetch the MIR for a given `DefId` up till the point where it is
119
121
/// ready for const evaluation.
@@ -328,6 +330,7 @@ rustc_queries! {
328
330
TypeChecking {
329
331
/// The result of unsafety-checking this `DefId`.
330
332
query unsafety_check_result( key: DefId ) -> mir:: UnsafetyCheckResult {
333
+ desc { |tcx| "unsafety-checking `{}`" , tcx. def_path_str( key) }
331
334
cache_on_disk_if { key. is_local( ) }
332
335
}
333
336
@@ -397,6 +400,7 @@ rustc_queries! {
397
400
}
398
401
399
402
query typeck_tables_of( key: DefId ) -> & ' tcx ty:: TypeckTables <' tcx> {
403
+ desc { |tcx| "type-checking `{}`" , tcx. def_path_str( key) }
400
404
cache_on_disk_if { key. is_local( ) }
401
405
load_cached( tcx, id) {
402
406
let typeck_tables: Option <ty:: TypeckTables <' tcx>> = tcx
@@ -436,6 +440,7 @@ rustc_queries! {
436
440
/// Borrow-checks the function body. If this is a closure, returns
437
441
/// additional requirements that the closure's creator must verify.
438
442
query mir_borrowck( key: DefId ) -> mir:: BorrowCheckResult <' tcx> {
443
+ desc { |tcx| "borrow-checking `{}`" , tcx. def_path_str( key) }
439
444
cache_on_disk_if( tcx, _) { key. is_local( ) && tcx. is_closure( key) }
440
445
}
441
446
}
0 commit comments