Emit struct in #[tracked] fn last for better IDE support

This commit is contained in:
Lukas Wirth 2024-11-02 18:01:31 +01:00
parent dfbe6d67f4
commit 842abe5c27

View file

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