Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/next_solver/infer/select.rs')
-rw-r--r--crates/hir-ty/src/next_solver/infer/select.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-ty/src/next_solver/infer/select.rs b/crates/hir-ty/src/next_solver/infer/select.rs
index d656d94f4f..4f111fa662 100644
--- a/crates/hir-ty/src/next_solver/infer/select.rs
+++ b/crates/hir-ty/src/next_solver/infer/select.rs
@@ -208,7 +208,7 @@ impl<'db> ProofTreeVisitor<'db> for Select {
// Don't winnow until `Certainty::Yes` -- we don't need to winnow until
// codegen, and only on the good path.
- if matches!(goal.result().unwrap(), Certainty::Maybe(..)) {
+ if matches!(goal.result().unwrap(), Certainty::Maybe { .. }) {
return ControlFlow::Break(Ok(None));
}
@@ -241,7 +241,7 @@ fn candidate_should_be_dropped_in_favor_of<'db>(
) -> bool {
// Don't winnow until `Certainty::Yes` -- we don't need to winnow until
// codegen, and only on the good path.
- if matches!(other.result().unwrap(), Certainty::Maybe(..)) {
+ if matches!(other.result().unwrap(), Certainty::Maybe { .. }) {
return false;
}
@@ -284,13 +284,13 @@ fn candidate_should_be_dropped_in_favor_of<'db>(
}
fn to_selection<'db>(cand: InspectCandidate<'_, 'db>) -> Option<Selection<'db>> {
- if let Certainty::Maybe(..) = cand.shallow_certainty() {
+ if let Certainty::Maybe { .. } = cand.shallow_certainty() {
return None;
}
let nested = match cand.result().expect("expected positive result") {
Certainty::Yes => Vec::new(),
- Certainty::Maybe(_) => cand
+ Certainty::Maybe { .. } => cand
.instantiate_nested_goals()
.into_iter()
.map(|nested| {