From 9defc971f1e059e139e8719661560de4741a128e Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Fri, 22 Sep 2023 09:25:38 +0000 Subject: [PATCH] Add tracing instrumentation, just like queries automatically add it --- compiler/rustc_middle/src/hooks/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_middle/src/hooks/mod.rs b/compiler/rustc_middle/src/hooks/mod.rs index cb84a5936b3..12aeae17725 100644 --- a/compiler/rustc_middle/src/hooks/mod.rs +++ b/compiler/rustc_middle/src/hooks/mod.rs @@ -23,6 +23,7 @@ macro_rules! declare_hooks { $(#[$attr])* #[inline(always)] #[must_use] + #[instrument(level = "debug", skip(self), ret)] pub fn $name(self, $($arg: $K,)*) -> $V { (self.tcx.hooks.$name)(self, $($arg,)*)