Update components/salsa-macro-rules/src/setup_tracked_fn.rs

This commit is contained in:
David Barsky 2024-11-07 10:36:02 -05:00 committed by GitHub
parent 842abe5c27
commit b0fafce5a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,