Debug assertion should be negated

This commit is contained in:
Ayaz Hafiz 2023-02-22 10:11:20 -06:00
parent 41d7ade5a3
commit 9b7c4bf367
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1823,11 +1823,11 @@ fn unify_unspecialized_lambdas<M: MetaCollector>(
debug_assert!(uls_right
.peek()
.map(|r| env.subs.equivalent_without_compacting(var_l, r.0))
.map(|r| !env.subs.equivalent_without_compacting(var_l, r.0))
.unwrap_or(true));
debug_assert!(uls_left
.peek()
.map(|l| env.subs.equivalent_without_compacting(l.0, var_r))
.map(|l| !env.subs.equivalent_without_compacting(l.0, var_r))
.unwrap_or(true));
} else {
// Even if these two variables unify, since they are not equivalent,