stable in rustc_public::rustc_internal - Rust
Description: Convert an internal Rust compiler item into its stable counterpart, if one exists.

Skip to main content

## stable

# 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 rustc_public has not been properly initialized.