Function stable

Source
pub fn stable<'tcx, S>(item: S) -> <S as Stable<'tcx>>::T
where S: Stable<'tcx>,
Expand description

Convert an internal Rust compiler item into its stable counterpart, if one exists.

§Warning

This function is unstable, and its behavior may change at any point. E.g.: Items that were previously supported, may no longer be supported, or its translation may change.

§Panics

This function will panic if StableMIR has not been properly initialized.