Expand description
Copies of the relevant MIR types. MIR represents a rust (function) body as a CFG. It’s a
semantically rich representation that contains no high-level control-flow operations like loops
or patterns; instead the control flow is entirely described by gotos and switches on integer
values.
Re-exports§
use rustc_middle::mir;🔒use rustc_middle::ty;🔒pub use mir_kinds::IsMirKind;use crate::frontend::prelude::*;🔒
Modules§
- mir_
kinds - Enumerates the kinds of Mir bodies. TODO: use const generics instead of an open list of types.
Structs§
- Const
Operand - The contents of
Operand::Const. - Field
Idx - The source-order index of a field in a variant.
Enums§
Functions§
- local_
names - translate_
mir_ 🔒const - Translate a MIR constant.