W7002 vacuous_obligation
A contract obligation was proved only because the assumptions on its path are contradictory, so the path can never run and the proof says nothing useful.
A warning from the verify phase. sakura explain W7002 prints this explanation offline.
A contract obligation was proved only because the assumptions on its path are contradictory, so
the path can never run and the proof says nothing useful. The verifier
checks the path's feasibility first; unsat is reported as proved with path_feasible: false
and this warning. Usually a requires or a branch condition rules out every input; remove the
contradiction or the dead branch.
Warning:
fn f(x: Int) -> Int
requires x > 0 && x < 0
ensures result > 100
{ x }Fixed:
fn f(x: Int) -> Int
requires x > 0
ensures result > 0
{ x }Wrong program
No fixture in compiler/tests/ui reports this code yet.
Fixed program
No fixed program yet; the explanation above describes the repair.
Last updated
W7001 property_discard_budget
A property discarded more than 90% of its generated inputs, so it tested almost nothing (design §7.4).
W8001 copy_on_write
A List, Map or Set update is proven to copy because the earlier version is still held (design §8.2, §17.172): read again after the update, captured by a closure or handler that is still live, or stored in a value that is still live.