pub fn lower_expr_tolerant(
expr: &Expr,
ctx: ExprLoweringContext<'_>,
) -> (Expr, Vec<ExprLowerError>)Expand description
Lower a syntax expression into HIR, accumulating diagnostics.
References that cannot be resolved become ExprKind::Error nodes and
their diagnostics are returned alongside the lowered tree, so consumers
that must keep working on incomplete code (the LSP) still get a tree with
spans for every position that did resolve.