aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/infer/coerce.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/infer/coerce.rs')
-rw-r--r--crates/hir_ty/src/infer/coerce.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/infer/coerce.rs b/crates/hir_ty/src/infer/coerce.rs
index 60186bc5f..20c512517 100644
--- a/crates/hir_ty/src/infer/coerce.rs
+++ b/crates/hir_ty/src/infer/coerce.rs
@@ -101,7 +101,7 @@ impl<'a> InferenceContext<'a> {
101 // here, we would coerce from `!` to `?T`. 101 // here, we would coerce from `!` to `?T`.
102 match to_ty.kind(&Interner) { 102 match to_ty.kind(&Interner) {
103 TyKind::InferenceVar(tv, TyVariableKind::General) => { 103 TyKind::InferenceVar(tv, TyVariableKind::General) => {
104 self.table.type_variable_table.set_diverging(*tv, true); 104 self.table.set_diverging(*tv, true);
105 } 105 }
106 _ => {} 106 _ => {}
107 } 107 }