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.
Re-exportsΒ§
use std::cell::RefCell;πuse rustc_middle::ty::TyCtxt;πuse rustc_public_bridge::Tables;πuse rustc_public_bridge::context::CompilerCtxt;πuse rustc_span::def_id::CrateNum;πuse crate::Error;πuse crate::compiler_interface::BridgeTys;πuse crate::compiler_interface::CompilerInterface;πuse crate::compiler_interface::with;π
ModulesΒ§
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.