rustc_smir::rustc_internal

Function stable

source
pub fn stable<'tcx, S: Stable<'tcx>>(item: S) -> S::T
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.