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_block at crates/formality-rust/src/check/borrow_check/nll.rs:144

Signature:

borrow_check_block(env: TypeckEnv, assumptions: Wcs, state: FlowState, block: Block, places_live_on_exit: LivePlaces,) => FlowState

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.

basic block
LineCoverageSource
157(let state = state.push_scope(&env.env, label, places_live_on_exit)?)
158(for_all(i in 0..stmts.len()) with(env, state)
(borrow_check_statement(
env,
assumptions,
state,
&stmts[i],
stmts[i+1..].live_before(env, &state, places_live_on_exit),
) => (env, state)))
167N/A(let locals_to_drop = state.locals_dropped_in_innermost_scope())
1682(drop_places(env, assumptions, state, locals_to_drop, places_live_on_exit) => state)
169N/A(let state = state.pop_scope(label))
──────── ("basic block")
17175(borrow_check_block(env, assumptions, state, Block { label, stmts }, places_live_on_exit) => state)