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 prove_ty_is_copy

judgment_fn! {
    /// Prove that a type implements Copy.
    fn prove_ty_is_copy(
        env: TypeckEnv,
        assumptions: Predicates,
        state: FlowState,
        ty: Ty,
    ) => FlowState {
        /* rules omitted */
    }
}

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

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.

trait
LineCoverageSource
1032N/A(let goal = AtomicPredicate::is_implemented(TraitId::new("Copy").with(ty, Vec::<Parameter>::new())))
10333(env.prove_goal(assumptions, &state, goal) => state)
──────── ("trait")
103520(prove_ty_is_copy(env, assumptions, state, ty) => state)

How to read this page