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 drop_places

judgment_fn! {
    /// Check that dropping the given locals (in the order provided) is permitted.
    /// Locals should be provided in reverse declaration order (LIFO drop order).
    fn drop_places(
        env: TypeckEnv,
        assumptions: Predicates,
        state: FlowState,
        places: Vec<TypedPlaceExpr>,
        places_live_after_drop: LivePlaces,
    ) => FlowState {
        /* rules omitted */
    }
}

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

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.

drop_places
LineCoverageSource
853✗(for_all(place in places) with(state)
(access_permitted_by_loans(env, assumptions, state, Access::new(AccessKind::Write, place), places_live_after_drop) => state)
(let state = kill_loans(place, &state)))
──────── ("drop_places")
857175(drop_places(env, assumptions, state, places, places_live_after_drop) => state)

How to read this page