Negative coverage: borrow_check_expr / binop / premise if scalar.is_int()
Premise at line 487. Observed failure causes: if_false.
binop| Line | Coverage | Source |
|---|---|---|
| 485 | 1 | (borrow_check_expr(env, assumptions, state, lhs, rhs.live_before(env, &state, places_live_on_exit)) => (lhs_ty, state)) |
| 486 | ✗ | (prove_ty_is_rigid(env, assumptions, state, &lhs_ty) => (RigidTy {name: RigidName::ScalarId(scalar), parameters: _}, state)) |
| 487 | 1 | (if scalar.is_int()) |
| 488 | 3 | (borrow_check_expr_has_ty(env, assumptions, state, rhs, &lhs_ty, places_live_on_exit) => state) |
| ──────── ("binop") | ||
| 490 | 23 | (borrow_check_expr(env, assumptions, state, Expr::BinOp{lhs, op: _, rhs}, places_live_on_exit) => (lhs_ty, state)) |
1 test failed proving this premise:
Source location: tests/mir_typeck.rs:1349 (all coverage from this test)
fn foo() -> () {
let x: bool = true * false;
}
Failed proof tree
check_all_crates failedmod.rs:42args
rule "check all prefixes"mod.rs:54check_crate failedmod.rs:61args
rule "check crate"mod.rs:74check_crate_item failedmod.rs:179rule "free fn"mod.rs:207check_free_fn failedfns.rs:14args
rule "check free fn"fns.rs:24check_fn failedfns.rs:31args
rule "check fn"fns.rs:54check_fn_body failedfns.rs:61args
rule "expr fn body"fns.rs:89borrow_check failednll.rs:124args
rule "borrow_check"nll.rs:135borrow_check_block failednll.rs:142rule "basic block"nll.rs:157borrow_check_statement failednll.rs:174args
rule "let"nll.rs:189borrow_check_expr_has_ty failednll.rs:350args
rule "block"nll.rs:363borrow_check_expr failednll.rs:371args
rule "multiplication"nll.rs:390borrow_check_expr failednll.rs:371rule "binop"nll.rs:487 (failed: if_false)