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 prove_assignable

judgment_fn! {
    /// Prove that `a` is assignable to `b`.
    fn prove_assignable(
        env: TypeckEnv,
        assumptions: Predicates,
        state: FlowState,
        a: Ty,
        b: Ty,
    ) => FlowState {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/check/borrow_check/nll.rs:1132

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.

never-to-b
LineCoverageSource
1144✗(prove_ty_is_rigid(env, assumptions, state, a) => (RigidTy { name: RigidName::Never, .. }, state))
──────── ("never-to-b")
1146✗(prove_assignable(env, assumptions, state, a, _b) => state)
subtype
LineCoverageSource
115013(prove_sub_type(env, assumptions, state, a, b) => state)
──────── ("subtype")
1152129(prove_assignable(env, assumptions, state, a, b) => state)

How to read this page