about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorStypox <stypox@pm.me>2025-07-31 15:36:44 +0200
committerStypox <stypox@pm.me>2025-07-31 15:42:29 +0200
commitbb08a4dfc784ad5558e42db3b41b4abbebafc5a9 (patch)
tree53da1bcad1b6eccb9b8ee23455be278213f777fa /compiler/rustc_const_eval/src
parente1f674cfa962fc76adbc4cfe95e9b3434299eede (diff)
downloadrust-bb08a4dfc784ad5558e42db3b41b4abbebafc5a9.tar.gz
rust-bb08a4dfc784ad5558e42db3b41b4abbebafc5a9.zip
Make Miri's enter_trace_span! call const_eval's
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/interpret/util.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/util.rs b/compiler/rustc_const_eval/src/interpret/util.rs
index 341756f837e..6696a0c5026 100644
--- a/compiler/rustc_const_eval/src/interpret/util.rs
+++ b/compiler/rustc_const_eval/src/interpret/util.rs
@@ -114,11 +114,11 @@ impl EnteredTraceSpan for tracing::span::EnteredSpan {}
 /// ```
 #[macro_export]
 macro_rules! enter_trace_span {
-    ($machine:ident, $name:ident :: $subname:ident $($tt:tt)*) => {{
+    ($machine:ty, $name:ident :: $subname:ident $($tt:tt)*) => {
         $crate::enter_trace_span!($machine, stringify!($name), $name = %stringify!($subname) $($tt)*)
-    }};
+    };
 
-    ($machine:ident, $($tt:tt)*) => {
+    ($machine:ty, $($tt:tt)*) => {
         <$machine as $crate::interpret::Machine>::enter_trace_span(|| tracing::info_span!($($tt)*))
-    }
+    };
 }