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 may_be_downstream_trait_ref

judgment_fn! {
    /// True if an impl defining this trait-reference could appear in a downstream crate.
    fn may_be_downstream_trait_ref(
        _decls: Program,
        env: Env,
        assumptions: Predicates,
        goal: TraitRef,
    ) => Constraints {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/prove/is_local.rs:74

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.

may_be_downstream_trait_ref
LineCoverageSource
86✗(p in &goal.parameters)
87✗(may_be_downstream_parameter(decls, env, assumptions, p) => c)
──────── ("may_be_downstream_trait_ref")
89✗(may_be_downstream_trait_ref(decls, env, assumptions, goal) => c)

How to read this page