about summary refs log tree commit diff
path: root/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_transmute/src/maybe_transmutable/mod.rs')
-rw-r--r--compiler/rustc_transmute/src/maybe_transmutable/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_transmute/src/maybe_transmutable/mod.rs b/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
index ef3852001a8..8fb85527a0f 100644
--- a/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
+++ b/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
@@ -64,7 +64,7 @@ mod rustc {
     impl<'tcx> MaybeTransmutableQuery<Ty<'tcx>, TyCtxt<'tcx>> {
         /// This method begins by converting `src` and `dst` from `Ty`s to `Tree`s,
         /// then computes an answer using those trees.
-        #[tracing::instrument(skip(self), fields(src = ?self.src, dst = ?self.dst))]
+        #[instrument(level = "DEBUG", skip(self), fields(src = ?self.src, dst = ?self.dst))]
         pub fn answer(self) -> Answer<<TyCtxt<'tcx> as QueryContext>::Ref> {
             let query_or_answer = self.map_layouts(|src, dst, scope, &context| {
                 // Convert `src` and `dst` from their rustc representations, to `Tree`-based
@@ -103,14 +103,14 @@ where
     /// This method begins by de-def'ing `src` and `dst`, and prunes private paths from `dst`,
     /// then converts `src` and `dst` to `Nfa`s, and computes an answer using those NFAs.
     #[inline(always)]
-    #[tracing::instrument(skip(self), fields(src = ?self.src, dst = ?self.dst))]
+    #[instrument(level = "DEBUG", skip(self), fields(src = ?self.src, dst = ?self.dst))]
     pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> {
         let assume_visibility = self.assume.visibility;
         let query_or_answer = self.map_layouts(|src, dst, scope, context| {
             // Remove all `Def` nodes from `src`, without checking their visibility.
             let src = src.prune(&|def| true);
 
-            tracing::trace!(src = ?src, "pruned src");
+            tracing::trace!(?src, "pruned src");
 
             // Remove all `Def` nodes from `dst`, additionally...
             let dst = if assume_visibility {
@@ -121,7 +121,7 @@ where
                 dst.prune(&|def| context.is_accessible_from(def, scope))
             };
 
-            tracing::trace!(dst = ?dst, "pruned dst");
+            tracing::trace!(?dst, "pruned dst");
 
             // Convert `src` from a tree-based representation to an NFA-based representation.
             // If the conversion fails because `src` is uninhabited, conclude that the transmutation
@@ -152,7 +152,7 @@ where
     ///
     /// This method converts `src` and `dst` to DFAs, then computes an answer using those DFAs.
     #[inline(always)]
-    #[tracing::instrument(skip(self), fields(src = ?self.src, dst = ?self.dst))]
+    #[instrument(level = "DEBUG", skip(self), fields(src = ?self.src, dst = ?self.dst))]
     pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> {
         let query_or_answer = self
             .map_layouts(|src, dst, scope, context| Ok((Dfa::from_nfa(src), Dfa::from_nfa(dst))));
@@ -192,7 +192,7 @@ where
     }
 
     #[inline(always)]
-    #[tracing::instrument(skip(self))]
+    #[instrument(level = "DEBUG", skip(self))]
     fn answer_memo(
         &self,
         cache: &mut Map<(dfa::State, dfa::State), Answer<<C as QueryContext>::Ref>>,