Skip to main content

lower_expr

Function lower_expr 

Source
pub fn lower_expr(
    expr: &Expr,
    ctx: ExprLoweringContext<'_>,
) -> Result<Expr, ExprLowerError>
Expand description

Lower a syntax expression into HIR, rejecting unresolved references.

This is the batch-pipeline boundary: the lowered tree is guaranteed to contain no ExprKind::Error node.

ยงErrors

Returns the first ExprLowerError if any expression-level reference cannot be resolved to a canonical module identity or lexical local binding.