@@ -113,7 +113,9 @@ rustc_queries! {
113113
114114 /// Fetch the MIR for a given `DefId` right after it's built - this includes
115115 /// 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+ }
117119
118120 /// Fetch the MIR for a given `DefId` up till the point where it is
119121 /// ready for const evaluation.
@@ -328,6 +330,7 @@ rustc_queries! {
328330 TypeChecking {
329331 /// The result of unsafety-checking this `DefId`.
330332 query unsafety_check_result( key: DefId ) -> mir:: UnsafetyCheckResult {
333+ desc { |tcx| "unsafety-checking `{}`" , tcx. def_path_str( key) }
331334 cache_on_disk_if { key. is_local( ) }
332335 }
333336
@@ -397,6 +400,7 @@ rustc_queries! {
397400 }
398401
399402 query typeck_tables_of( key: DefId ) -> & ' tcx ty:: TypeckTables <' tcx> {
403+ desc { |tcx| "type-checking `{}`" , tcx. def_path_str( key) }
400404 cache_on_disk_if { key. is_local( ) }
401405 load_cached( tcx, id) {
402406 let typeck_tables: Option <ty:: TypeckTables <' tcx>> = tcx
@@ -436,6 +440,7 @@ rustc_queries! {
436440 /// Borrow-checks the function body. If this is a closure, returns
437441 /// additional requirements that the closure's creator must verify.
438442 query mir_borrowck( key: DefId ) -> mir:: BorrowCheckResult <' tcx> {
443+ desc { |tcx| "borrow-checking `{}`" , tcx. def_path_str( key) }
439444 cache_on_disk_if( tcx, _) { key. is_local( ) && tcx. is_closure( key) }
440445 }
441446 }
0 commit comments