Skip to content

Commit 9defc97

Browse files
committed
Add tracing instrumentation, just like queries automatically add it
1 parent 2157f31 commit 9defc97

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/hooks

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/hooks/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ macro_rules! declare_hooks {
2323
$(#[$attr])*
2424
#[inline(always)]
2525
#[must_use]
26+
#[instrument(level = "debug", skip(self), ret)]
2627
pub fn $name(self, $($arg: $K,)*) -> $V
2728
{
2829
(self.tcx.hooks.$name)(self, $($arg,)*)

0 commit comments

Comments
 (0)