Skip to content

Commit

Permalink
Add tracing instrumentation, just like queries automatically add it
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 22, 2023
1 parent 2157f31 commit 9defc97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/hooks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,)*)
Expand Down

0 comments on commit 9defc97

Please sign in to comment.