Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Judgment type_expr

judgment_fn! {
    fn type_expr(
        cfn: CodegenFn,
        scope: CodegenScope,
        expr: Expr,
    ) => Ty {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/codegen/mod.rs:463

The number on each rule’s conclusion is positive coverage; the number on each premise is negative coverage. Click a number to browse the tests.

type_expr
LineCoverageSource
472✗(borrow_check_expr(
&cfn.typeck_env,
&cfn.assumptions,
&scope.flow_state,
expr,
LivePlaces::default(),
) => (ty, state))
479N/A(let () = assert_no_constraints(state))
──────── ("type_expr")
481✗(type_expr(cfn, scope, expr) => ty)

How to read this page