Negative coverage: borrow_check_place_expr / local / premise let ty = state.local_variable(&local_id)?
Premise at line 717. Observed failure causes: inapplicable.
local| Line | Coverage | Source |
|---|---|---|
| 717 | 3 | (let ty = state.local_variable(&local_id)?) |
| ──────── ("local") | ||
| 719 | 142 | (borrow_check_place_expr(_env, _assumptions, state, PlaceExpr::Var(local_id)) => ( TypedPlaceExpr::new(ty, TypedPlaceExpressionData::local(local_id)), state, )) |
3 tests failed proving this premise:
Source location: tests/mir_typeck.rs:345 (all coverage from this test)
fn bar() -> u32 {
let v1: u32 = foo(0_u32);
return v1;
}
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:75check_crate_item failedmod.rs:180rule "free fn"mod.rs:208check_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:144rule "basic block"nll.rs:159borrow_check_statement failednll.rs:176args
rule "let"nll.rs:191borrow_check_expr_has_ty failednll.rs:354args
rule "block"nll.rs:367borrow_check_expr failednll.rs:375args
rule "call"nll.rs:494borrow_check_expr failednll.rs:375args
rule "place"nll.rs:583borrow_check_place_expr failednll.rs:706args
rule "local"nll.rs:717 (failed: inapplicable)
Source location: tests/mir_typeck.rs:416 (all coverage from this test)
fn bar(v1: u32) -> u32 {
let v0: u32 = identity(v1);
return v0;
}
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:75check_crate_item failedmod.rs:180rule "free fn"mod.rs:208check_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:144rule "basic block"nll.rs:159borrow_check_statement failednll.rs:176args
rule "let"nll.rs:191borrow_check_expr_has_ty failednll.rs:354args
rule "block"nll.rs:367borrow_check_expr failednll.rs:375args
rule "call"nll.rs:494borrow_check_expr failednll.rs:375args
rule "place"nll.rs:583borrow_check_place_expr failednll.rs:706args
rule "local"nll.rs:717 (failed: inapplicable)
Source location: tests/mir_typeck.rs:2035 (all coverage from this test)
fn main() -> () {
needs_all();
}
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:75check_crate_item failedmod.rs:180rule "free fn"mod.rs:208check_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:144rule "basic block"nll.rs:159borrow_check_statement failednll.rs:176args
rule "expr"nll.rs:234borrow_check_expr failednll.rs:375args
rule "call"nll.rs:494borrow_check_expr failednll.rs:375args
rule "place"nll.rs:583borrow_check_place_expr failednll.rs:706args
rule "local"nll.rs:717 (failed: inapplicable)