@@ -125,7 +125,9 @@ rustc_queries! {
125
125
126
126
/// Fetch the MIR for a given `DefId` right after it's built - this includes
127
127
/// unreachable code.
128
- query mir_built( _: DefId ) -> & ' tcx Steal <mir:: BodyAndCache <' tcx>> { }
128
+ query mir_built( _: DefId ) -> & ' tcx Steal <mir:: BodyAndCache <' tcx>> {
129
+ desc { "building MIR for" }
130
+ }
129
131
130
132
/// Fetch the MIR for a given `DefId` up till the point where it is
131
133
/// ready for const evaluation.
@@ -345,6 +347,7 @@ rustc_queries! {
345
347
TypeChecking {
346
348
/// The result of unsafety-checking this `DefId`.
347
349
query unsafety_check_result( key: DefId ) -> mir:: UnsafetyCheckResult {
350
+ desc { |tcx| "unsafety-checking `{}`" , tcx. def_path_str( key) }
348
351
cache_on_disk_if { key. is_local( ) }
349
352
}
350
353
@@ -414,6 +417,7 @@ rustc_queries! {
414
417
}
415
418
416
419
query typeck_tables_of( key: DefId ) -> & ' tcx ty:: TypeckTables <' tcx> {
420
+ desc { |tcx| "type-checking `{}`" , tcx. def_path_str( key) }
417
421
cache_on_disk_if { key. is_local( ) }
418
422
load_cached( tcx, id) {
419
423
let typeck_tables: Option <ty:: TypeckTables <' tcx>> = tcx
@@ -453,6 +457,7 @@ rustc_queries! {
453
457
/// Borrow-checks the function body. If this is a closure, returns
454
458
/// additional requirements that the closure's creator must verify.
455
459
query mir_borrowck( key: DefId ) -> mir:: BorrowCheckResult <' tcx> {
460
+ desc { |tcx| "borrow-checking `{}`" , tcx. def_path_str( key) }
456
461
cache_on_disk_if( tcx, _) { key. is_local( ) && tcx. is_closure( key) }
457
462
}
458
463
}
0 commit comments