mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 21:40:58 +00:00
17 lines
296 B
Rust
17 lines
296 B
Rust
#[inline(never)]
|
|
pub fn callback<F>(f: F)
|
|
where
|
|
F: FnOnce((&'static str, u32)),
|
|
{
|
|
f((file!(), line!()))
|
|
}
|
|
|
|
#[inline(always)]
|
|
#[cfg_attr(feature = "coresymbolication", inline(never))]
|
|
pub fn callback_inlined<F>(f: F)
|
|
where
|
|
F: FnOnce((&'static str, u32)),
|
|
{
|
|
f((file!(), line!()))
|
|
}
|