Skip to main content

lower_to_mir_with_store

Function lower_to_mir_with_store 

Source
pub fn lower_to_mir_with_store<'db>(
    db: &'db dyn HirDatabase,
    owner: InferBodyId<'db>,
    store: &ExpressionStore,
    infer: &InferenceResult<'db>,
    root_expr: ExprId,
    params: impl Iterator<Item = (PatId, Ty<'db>)> + Clone,
    self_param: Option<(BindingId, Ty<'db>)>,
) -> Result<MirBody<'db>, MirLowerError<'db>>
Expand description

§Parameters

  • is_root: true when root_expr is the body’s top-level expression (picks bindings with no owner); false when lowering an inline const or anonymous const (picks bindings owned by root_expr).