1
Fork 0

finishing touches, move fixed ICEs to ui tests

This commit is contained in:
Deadbeef 2024-06-25 10:44:00 +00:00
parent 0a2330630d
commit 8b2fac9612
19 changed files with 182 additions and 65 deletions

View file

@ -717,7 +717,7 @@ where
let cx = ecx.cx();
let maybe_count = types
.into_iter()
.iter()
.filter_map(|ty| ty::EffectKind::try_from_ty(cx, ty))
.filter(|&ty| ty == ty::EffectKind::Maybe)
.count();
@ -727,7 +727,7 @@ where
if types.len() - maybe_count > 1 {
let mut min = ty::EffectKind::Maybe;
for ty in types {
for ty in types.iter() {
let Some(kind) = ty::EffectKind::try_from_ty(ecx.cx(), ty) else {
return Err(NoSolution);
};