rustc_smir

Module rustc_internal

Source
Expand description

Module that implements the bridge between Stable MIR and internal compiler MIR.

For that, we define APIs that will temporarily be public to 3P that exposes rustc internal APIs until stable MIR is complete.

Modules§

  • internal 🔒
    Module containing the translation from stable mir constructs to the rustc counterpart.

Structs§

  • Similar to rustc’s FxIndexMap, IndexMap with extra safety features added.

Statics§

Traits§

  • Trait used to translate a stable construct to its rustc counterpart.

Functions§

  • init 🔒
  • Convert a stable item into its internal Rust compiler counterpart, if one exists.
  • Convert an internal Rust compiler item into its stable counterpart, if one exists.
  • Loads the current context and calls a function with it. Do not nest these, as that will ICE.