pub fn internal<'tcx, S>(tcx: TyCtxt<'tcx>, item: S) -> S::T<'tcx>where
S: RustcInternal,
Expand description
Convert a stable item into its internal Rust compiler counterpart, if one exists.
§Warning
This function is unstable, and it’s behavior may change at any point. Not every stable item can be converted to an internal one. Furthermore, items that were previously supported, may no longer be supported in newer versions.
§Panics
This function will panic if StableMIR has not been properly initialized.