Use let chains in the new solver

This commit is contained in:
Michael Goulet
2025-06-27 16:29:48 +00:00
parent 13c46fd0b0
commit 66ea349392
8 changed files with 84 additions and 96 deletions

View File

@@ -383,10 +383,10 @@ where
let mut candidates = vec![];
if let TypingMode::Coherence = self.typing_mode() {
if let Ok(candidate) = self.consider_coherence_unknowable_candidate(goal) {
return vec![candidate];
}
if let TypingMode::Coherence = self.typing_mode()
&& let Ok(candidate) = self.consider_coherence_unknowable_candidate(goal)
{
return vec![candidate];
}
self.assemble_alias_bound_candidates(goal, &mut candidates);