Skip to main content

Module mir

Module mir 

Source

Re-exports§

pub use visit::MirVisitor;
pub use visit::MutMirVisitor;

Modules§

alloc
This module provides methods to retrieve allocation information, such as static variables.
body 🔒
mono
pretty
Implement methods to pretty print rustc_public’s IR body.
visit
The rustc_public’s IR Visitor

Structs§

BasicBlock
Body
The rustc_public’s IR representation of a single function.
ConstOperand
CopyNonOverlapping
InlineAsmOperand
LocalDecl
Place
SourceInfo
SourceScopeInfo
Data about a source scope, used for caller location resolution.
Statement
SwitchTargets
The possible branch sites of a TerminatorKind::SwitchInt.
Terminator
UserTypeProjection
VarDebugInfo
Debug information pertaining to a user variable.
VarDebugInfoFragment

Enums§

AggregateKind
AssertMessage
BinOp
BorrowKind
CastKind
CoroutineDesugaring
CoroutineKind
CoroutineSource
FakeBorrowKind
FakeReadCause
The FakeReadCause describes the type of pattern why a FakeRead statement exists.
MutBorrowKind
Mutability
NonDivergingIntrinsic
Operand
PointerCoercion
ProjectionElem
RawPtrKind
RuntimeChecks
Rvalue
Safety
StatementKind
TerminatorKind
UnOp
UnwindAction
VarDebugInfoContents
Variance
WithRetag
Describes what kind of retag is to be performed

Constants§

RETURN_LOCAL

Functions§

max_scope
Return the maximum scope index referenced by any terminator or statement in blocks.

Type Aliases§

BasicBlockIdx
Coverage
The rustc coverage data structures are heavily tied to internal details of the coverage implementation that are likely to change, and are unlikely to be useful to third-party tools for the foreseeable future.
FieldIdx
The source-order index of a field in a variant.
Local
LocalDecls
LocalDefId
SourceScope
Successors
UserTypeAnnotationIndex