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_ty_is_ref

judgment_fn! {
    /// Prove that any loans issued in thes value expressions (evaluated in this order) are respected.
    fn prove_ty_is_ref(
        env: TypeckEnv,
        assumptions: Predicates,
        state: FlowState,
        ty: Ty,
    ) => FlowState {
        /* rules omitted */
    }
}

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

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.

ref
LineCoverageSource
1101✗(prove_ty_is_rigid(env, assumptions, state, ty) => (RigidTy { name: RigidName::Ref(..), .. }, state))
──────── ("ref")
110310(prove_ty_is_ref(_env, _assumptions, state, ty) => state)

How to read this page