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 check_crate

judgment_fn! {
    /// Check that the current crate `c` is valid,
    /// given the complete program (which includes dependencies).
    fn check_crate(
        program: Program,
        c: Crate,
    ) => () {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/check/mod.rs:61

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.

check crate
LineCoverageSource
716(check_for_duplicate_items(program) => ())
726(check_for_non_lifetime_binders(c) => ())
73✗(for_all(item in &c.items)
(check_crate_item(program, item, &c.id) => ()))
7520(check_coherence(program, c) => ())
──────── ("check crate")
77214(check_crate(program, Crate { id: _id, items: _items }) => ())

How to read this page