mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-22 12:56:33 +00:00
Emit struct in #[tracked]
fn last for better IDE support
This commit is contained in:
parent
dfbe6d67f4
commit
842abe5c27
1 changed files with 5 additions and 5 deletions
|
@ -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])*
|
||||
|
@ -288,5 +283,10 @@ macro_rules! setup_tracked_fn {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
$vis struct $fn_name {
|
||||
_priv: std::convert::Infallible,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue