rune_alloc/
hint.rs

1
2
3
4
5
6
7
8
9
10
11
12
cfg_if! {
    if #[cfg(rune_nightly)] {
        pub(crate) use core::intrinsics::{likely, unlikely, assume};
    } else {
        pub(crate) use core::convert::{identity as likely, identity as unlikely};

        #[inline(always)]
        pub(crate) fn assume(_: bool) {
            // do nothing
        }
    }
}