Skip to content

Commit 7842656

Browse files
committed
Print executed queries
1 parent 0b7c9e7 commit 7842656

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc/ty/maps/plumbing.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@ macro_rules! define_maps {
768768

769769
#[inline]
770770
fn compute(tcx: TyCtxt<'_, 'tcx, '_>, key: Self::Key) -> Self::Value {
771+
if tcx.sess.verbose() {
772+
eprintln!("executing {}", stringify!($name));
773+
}
771774
__query_compute::$name(move || {
772775
let provider = tcx.maps.providers[key.map_crate()].$name;
773776
provider(tcx.global_tcx(), key)

0 commit comments

Comments
 (0)