Skip to main content

Module rustc_internal

Module rustc_internal 

Source
Expand description

Unstable internal APIs for bridging with rustc internals.

This module has no stability guarantees and is not covered by semver. It is only available when the rustc_internal feature is enabled. Module that implements the bridge between rustc_public’s IR and internal compiler MIR.

For that, we define APIs that will temporarily be public to 3P that exposes rustc internal APIs until rustc_public’s IR is complete.

Modules§

pretty

Functions§

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