Skip to content

Commit f65436b

Browse files
committed
assert when no conditional candidates where found
1 parent 28210b9 commit f65436b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/solver/clause.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,7 @@ impl Clause {
247247
let mut requirement_candidates = requirement_candidates.into_iter();
248248

249249
// Check if we have any condition candidates
250-
let Some(first_condition) = condition_candidates.next() else {
251-
// No conditions means this is just an assertion
252-
return (
253-
Clause::Conditional(parent_id, condition, requirement),
254-
None,
255-
false,
256-
);
257-
};
250+
let first_condition = condition_candidates.next().expect("no condition candidates");
258251

259252
// Try to find a condition candidate that is undecided or true
260253
let condition_literal = std::iter::once(first_condition)

0 commit comments

Comments
 (0)