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 borrow_check_loop

judgment_fn! {
    /// Borrow-check a place expression, returning its type.
    fn borrow_check_loop(
        env: TypeckEnv,
        assumptions: Predicates,
        state: FlowState,
        body: Block,
        places_live_on_exit: LivePlaces,
    ) => FlowState {
        /* rules omitted */
    }
}

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

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.

loop
LineCoverageSource
6529(borrow_check_block(env, assumptions, state, body, places_live_on_exit) => state)
6543(borrow_check_loop(env, assumptions, state, body, places_live_on_exit) => state)
──────── ("loop")
65620(borrow_check_loop(env, assumptions, state, body, places_live_on_exit) => state)
fixed-point
LineCoverageSource
6609(borrow_check_block(env, assumptions, state0, body, places_live_on_exit) => state1)
6613(if state0 == state1)
──────── ("fixed-point")
66323(borrow_check_loop(env, assumptions, state0, body, places_live_on_exit) => state1)

How to read this page