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 is_local_trait_ref at crates/formality-rust/src/prove/is_local.rs:197

Signature:

is_local_trait_ref(_decls: Program, env: Env, assumptions: Wcs, goal: TraitRef,) => Constraints

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.

local trait
LineCoverageSource
2076(if decls.is_local_trait_id(&goal.trait_id))
──────── ("local trait")
209143(is_local_trait_ref(decls, env, _assumptions, goal) => Constraints::none(env))
local parameter
LineCoverageSource
214(i in 0 .. goal.parameters.len())
2156(is_local_parameter(decls, env, assumptions, &goal.parameters[*i]) => c1)
218N/A(let assumptions = c1.substitution().apply(assumptions))
219N/A(let goal = c1.substitution().apply(goal))
2201(for_all(decls, env, assumptions, &goal.parameters[..*i], &is_not_downstream) => c2)
──────── ("local parameter")
22211(is_local_trait_ref(decls, env, assumptions, goal) => c1.seq(c2))