Skip to content

Commit 594c7df

Browse files
committed
document the invariant in the subset_placeholder TC
1 parent b1a339e commit 594c7df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

polonius-engine/src/output/datafrog_opt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ pub(super) fn compute<T: FactTypes>(
413413
|&((origin1, point), origin2), _| (origin1, origin2, point),
414414
);
415415

416+
// We compute the transitive closure of the placeholder origins, so we
417+
// maintain the invariant from the rule above that `Origin1` is a placeholder origin.
418+
//
416419
// subset_placeholder(Origin1, Origin3, Point) :-
417420
// subset_placeholder(Origin1, Origin2, Point),
418421
// subset(Origin2, Origin3, Point).

0 commit comments

Comments
 (0)