From b0fafce5a5c7a01ebb6946e918ea268f2c754712 Mon Sep 17 00:00:00 2001 From: David Barsky Date: Thu, 7 Nov 2024 10:36:02 -0500 Subject: [PATCH] Update components/salsa-macro-rules/src/setup_tracked_fn.rs --- components/salsa-macro-rules/src/setup_tracked_fn.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/salsa-macro-rules/src/setup_tracked_fn.rs b/components/salsa-macro-rules/src/setup_tracked_fn.rs index b6182241..79ec96d5 100644 --- a/components/salsa-macro-rules/src/setup_tracked_fn.rs +++ b/components/salsa-macro-rules/src/setup_tracked_fn.rs @@ -283,7 +283,9 @@ macro_rules! setup_tracked_fn { } }) } - + // The struct needs be last in the macro expansion in order to make the tracked + // function's ident be identified as a function, not a struct, during semantic highlighting. + // for more details, see https://github.com/salsa-rs/salsa/pull/612. #[allow(non_camel_case_types)] $vis struct $fn_name { _priv: std::convert::Infallible,