Skip to content

Commit

Permalink
Emit struct in #[tracked] fn last for better IDE support
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Nov 2, 2024
1 parent dfbe6d6 commit 842abe5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/salsa-macro-rules/src/setup_tracked_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ macro_rules! setup_tracked_fn {
$inner:ident,
]
) => {
#[allow(non_camel_case_types)]
$vis struct $fn_name {
_priv: std::convert::Infallible,
}

// Suppress this clippy lint because we sometimes require `'db` where the ordinary Rust rules would not.
#[allow(clippy::needless_lifetimes)]
$(#[$attr])*
Expand Down Expand Up @@ -288,5 +283,10 @@ macro_rules! setup_tracked_fn {
}
})
}

#[allow(non_camel_case_types)]
$vis struct $fn_name {
_priv: std::convert::Infallible,
}
};
}

0 comments on commit 842abe5

Please sign in to comment.