Skip to content

Commit faae05a

Browse files
committed
Add some comments
1 parent 722ecfb commit faae05a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/solve/fulfill.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ pub struct Fulfill<'s> {
7272
/// Lifetime constraints that must be fulfilled for a solution to be fully
7373
/// validated.
7474
constraints: HashSet<InEnvironment<Constraint>>,
75+
76+
/// Record that a goal has been processed that can neither be proved nor
77+
/// refuted. In such a case the solution will be either `CannotProve`, or `Err`
78+
/// in the case where some other goal leads to an error.
7579
cannot_prove: bool,
7680
}
7781

@@ -320,8 +324,9 @@ impl<'s> Fulfill<'s> {
320324
obligations.push(obligation);
321325
}
322326

323-
// If one of the obligations cannot be proven, then the whole goal
324-
// cannot be proven either.
327+
// If one of the obligations cannot be proven then the whole goal
328+
// cannot be proven either, unless another obligation leads to an error
329+
// in which case the function will bail out normally.
325330
self.cannot_prove = self.cannot_prove || cannot_prove;
326331
}
327332

0 commit comments

Comments
 (0)