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> {} + query mir_built(_: DefId) -> &'tcx Steal> { + 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> = 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) } } }