Get rid of inaccurate debug assertion

This commit is contained in:
Ayaz Hafiz 2023-02-22 18:09:00 -06:00
parent 99d31aa74c
commit f7455deb06
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1820,15 +1820,6 @@ fn unify_unspecialized_lambdas<M: MetaCollector>(
let _dropped = uls_right.next().unwrap();
let kept = uls_left.next().unwrap();
merged_uls.push(*kept);
debug_assert!(uls_right
.peek()
.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))
.unwrap_or(true));
} else {
// Even if these two variables unify, since they are not equivalent,
// they correspond to different specializations! As such we must not