From 63a3a987c6efda5a6d6c0609c9a6388dcf00379a Mon Sep 17 00:00:00 2001 From: Benjamin Brienen Date: Tue, 15 Oct 2024 04:48:36 +0200 Subject: [PATCH] Fix `detailed_trace` module scope (#15912) # Objective Fixes #15615 ## Solution `$crate` is a cool keyword metavariable ## Testing Created a test crate and used the macro ## Showcase ![image](https://github.com/user-attachments/assets/f0567224-126d-44e4-8905-26103da4ba14) --- crates/bevy_utils/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index 1f7e1f7e5c..1865f62cf9 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -412,7 +412,7 @@ pub fn error(result: Result<(), E>) { macro_rules! detailed_trace { ($($tts:tt)*) => { if cfg!(detailed_trace) { - bevy_utils::tracing::trace!($($tts)*); + $crate::tracing::trace!($($tts)*); } } }