Add tracing instrumentation, just like queries automatically add it

This commit is contained in:
Oli Scherer
2023-09-22 09:25:38 +00:00
parent 2157f31731
commit 9defc971f1
+1
View File
@@ -23,6 +23,7 @@ impl<'tcx> TyCtxtAt<'tcx> {
$(#[$attr])*
#[inline(always)]
#[must_use]
#[instrument(level = "debug", skip(self), ret)]
pub fn $name(self, $($arg: $K,)*) -> $V
{
(self.tcx.hooks.$name)(self, $($arg,)*)