Negative coverage: borrow_check_place_expr / struct field / premise prove_ty_is_rigid(env, assumptions, state, &prefix_typed.ty) => (RigidTy { name: RigidName::AdtId(adt_id), parameters }, state)
Premise at line 624. Observed failure causes: if_let.
struct field| Line | Coverage | Source |
|---|---|---|
| 623 | ✗ | (borrow_check_place_expr(env, assumptions, state, prefix) => (prefix_typed, state)) |
| 624 | 1 | (prove_ty_is_rigid(env, assumptions, state, &prefix_typed.ty) => (RigidTy { name: RigidName::AdtId(adt_id), parameters }, state)) |
| 625 | ✗ | (let Struct { id: _, binder } = env.crates().struct_named(&adt_id)?) |
| 626 | ✗ | (let StructBoundData { where_clauses, fields } = binder.instantiate_with(¶meters)?) |
| 627 | ✗ | (prove_where_clauses(env, assumptions, state, where_clauses) => state) |
| 628 | ✗ | (field in fields) |
| 629 | 1 | (if field.name == *field_name) |
| ──────── ("struct field") | ||
| 631 | 20 | (borrow_check_place_expr(env, assumptions, state, PlaceExpr::Field { prefix, field_name }) => ( TypedPlaceExpr::new(&field.ty, TypedPlaceExpressionData::field(prefix_typed, field_name, adt_id, VariantId::for_struct())), state, )) |
1 test failed proving this premise:
Source location: tests/mir_typeck.rs:613
fn foo (v1: u32) -> u32 {
let v2: Dummy = Dummy { value: 1_u32 };
v1.value = 2_u32;
return v1;
}
Failed proof tree
check_all_crates failedmod.rs:41args
rule "check all prefixes"mod.rs:53check_crate failedmod.rs:60args
rule "check crate"mod.rs:73check_crate_item failedmod.rs:178rule "free fn"mod.rs:206check_free_fn failedfns.rs:14args
rule "check free fn"fns.rs:24check_fn failedfns.rs:31args
rule "check fn"fns.rs:55check_fn_body failedfns.rs:62args
rule "expr fn body"fns.rs:90borrow_check failednll.rs:127args
rule "borrow_check"nll.rs:138borrow_check_block failednll.rs:145rule "basic block"nll.rs:160borrow_check_statement failednll.rs:177args
rule "expr"nll.rs:230borrow_check_expr failednll.rs:372args
rule "assign"nll.rs:394borrow_check_place_expr failednll.rs:603args
rule "struct field"nll.rs:624 (failed: if_let)