Skip to content

Commit

Permalink
Update components/salsa-macro-rules/src/setup_tracked_fn.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbarsky authored Nov 7, 2024
1 parent 842abe5 commit b0fafce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/salsa-macro-rules/src/setup_tracked_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b0fafce

Please sign in to comment.