diff options
| author | Stypox <stypox@pm.me> | 2025-07-31 15:36:44 +0200 |
|---|---|---|
| committer | Stypox <stypox@pm.me> | 2025-07-31 15:42:29 +0200 |
| commit | bb08a4dfc784ad5558e42db3b41b4abbebafc5a9 (patch) | |
| tree | 53da1bcad1b6eccb9b8ee23455be278213f777fa /compiler/rustc_const_eval/src | |
| parent | e1f674cfa962fc76adbc4cfe95e9b3434299eede (diff) | |
| download | rust-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.rs | 8 |
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)*)) - } + }; } |
