mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-02 09:46:06 +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,
|
$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.
|
// Suppress this clippy lint because we sometimes require `'db` where the ordinary Rust rules would not.
|
||||||
#[allow(clippy::needless_lifetimes)]
|
#[allow(clippy::needless_lifetimes)]
|
||||||
$(#[$attr])*
|
$(#[$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