Expand description
MIR lowering: AST -> MIR.
Converts Shape AST function bodies into MIR basic blocks. This is the bridge between parsing and borrow analysis.
§Module structure
mod.rs– Public API (lower_function,lower_function_detailed,compute_mutability_errors),MirBuilderstruct and its state machine.- [
expr] – Expression lowering (lower_expr_to_tempand its many helpers). - [
stmt] – Statement lowering (variable decls, assignments, control flow, pattern destructuring). - [
helpers] – Shared utilities: generic container store emission, operand collection, place projection, type inference from expressions.
Structs§
- Lowered
Binding Info - MirBuilder
- Builder for constructing a MIR function from AST.
- MirLowering
Result
Functions§
- compute_
mutability_ errors - lower_
function - Lower a function body (list of statements) into MIR.
- lower_
function_ detailed - Lower a function body (list of statements) into MIR.