Judgment borrow_check
judgment_fn! {
/// Prove that any loans issued in this basic block are respected.
pub fn borrow_check(
env: TypeckEnv,
assumptions: Predicates,
state: FlowState,
block: Block,
) => () {
/* rules omitted */
}
}
Source: crates/formality-rust/src/check/borrow_check/nll.rs:124
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.
borrow_check| Line | Coverage | Source |
|---|---|---|
| 135 | 113 | (borrow_check_block(env, assumptions, state, block, LivePlaces::default()) => state) |
| 136 | N/A | (let locals_to_drop = state.locals_dropped_on_return()) |
| 137 | 1 | (drop_places(env, assumptions, state, locals_to_drop, LivePlaces::default()) => _state) |
| ──────── ("borrow_check") | ||
| 139 | 289 | (borrow_check(env, assumptions, state, block) => ()) |