Skip to content

Commit 36809bf

Browse files
committed
clarify diagonal arrows
1 parent d5b679b commit 36809bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_data_structures/transitive_relation.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ impl<T:Debug+PartialEq> TransitiveRelation<T> {
112112
/// b -> b1 ---+
113113
///
114114
/// // returns Some(x), which is not LUB (there is none)
115+
/// // diagonal edges run left-to-right
115116
/// a -> a1 -> x
116117
/// \/ ^
117118
/// /\ |
@@ -400,6 +401,7 @@ fn mubs_best_choice_scc() {
400401

401402
#[test]
402403
fn bub_crisscross() {
404+
// diagonal edges run left-to-right
403405
// a -> a1 -> x
404406
// \/ ^
405407
// /\ |
@@ -419,6 +421,7 @@ fn bub_crisscross() {
419421

420422
#[test]
421423
fn bub_crisscross_more() {
424+
// diagonal edges run left-to-right
422425
// a -> a1 -> a2 -> a3 -> x
423426
// \/ \/ ^
424427
// /\ /\ |

0 commit comments

Comments
 (0)