diff options
author | Lukas Wirth <[email protected]> | 2021-03-01 20:57:39 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-04 18:38:02 +0000 |
commit | 50e01d2bc7429d718e0783d75458a6a047ee2b70 (patch) | |
tree | 5043387dfce7e3fc96777ce5983048f0d2d450e5 /crates/hir_ty/src/infer/pat.rs | |
parent | 16a76aa158d0898d6a46d7bba7310150555a69b9 (diff) |
Use chalk_ir::AdtId
Diffstat (limited to 'crates/hir_ty/src/infer/pat.rs')
-rw-r--r-- | crates/hir_ty/src/infer/pat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/infer/pat.rs b/crates/hir_ty/src/infer/pat.rs index eb099311c..987793e2e 100644 --- a/crates/hir_ty/src/infer/pat.rs +++ b/crates/hir_ty/src/infer/pat.rs | |||
@@ -237,7 +237,7 @@ impl<'a> InferenceContext<'a> { | |||
237 | }; | 237 | }; |
238 | 238 | ||
239 | let inner_ty = self.infer_pat(*inner, inner_expected, default_bm); | 239 | let inner_ty = self.infer_pat(*inner, inner_expected, default_bm); |
240 | Ty::Adt(box_adt, Substs::single(inner_ty)) | 240 | Ty::adt_ty(box_adt, Substs::single(inner_ty)) |
241 | } | 241 | } |
242 | None => Ty::Unknown, | 242 | None => Ty::Unknown, |
243 | }, | 243 | }, |