rune_alloc/
hint.rs

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