Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/opaques.rs')
-rw-r--r--crates/hir-ty/src/infer/opaques.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/hir-ty/src/infer/opaques.rs b/crates/hir-ty/src/infer/opaques.rs
index 1c722897f4..a39288721b 100644
--- a/crates/hir-ty/src/infer/opaques.rs
+++ b/crates/hir-ty/src/infer/opaques.rs
@@ -117,7 +117,7 @@ impl<'db> InferenceContext<'_, 'db> {
continue;
}
- self.result.type_of_opaque.insert(def_id, self.types.error.store());
+ self.result.type_of_opaque.insert(def_id, self.types.types.error.store());
}
}
@@ -139,9 +139,10 @@ impl<'db> InferenceContext<'_, 'db> {
let at = self.table.infer_ctxt.at(&cause, self.table.param_env);
let hidden_type = match at.deeply_normalize(hidden_type) {
Ok(hidden_type) => hidden_type,
- Err(_errors) => OpaqueHiddenType { ty: self.types.error },
+ Err(_errors) => OpaqueHiddenType { ty: self.types.types.error },
};
- let hidden_type = fold_regions(self.interner(), hidden_type, |_, _| self.types.re_erased);
+ let hidden_type =
+ fold_regions(self.interner(), hidden_type, |_, _| self.types.regions.erased);
UsageKind::HasDefiningUse(hidden_type)
}
}