//! Block and function hotness shared by the compiler IRs.
/// Hotness metadata.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]pubenumHotness{/// The code is expected to be frequently executed.
#[default]
Hot,/// The code is expected to be infrequently executed.
Cold,}implHotness{/// Returns whether this is cold code.
#[must_use]pubconstfnis_cold(self)->bool{matches!(self,Self::Cold)}}