aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/infer/pat.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2021-04-03 12:08:29 +0100
committerFlorian Diebold <[email protected]>2021-04-03 12:08:29 +0100
commitc551604b5a0b74a43f5efe567bcbd979daa2f3cc (patch)
treeaba0fc8a8b9dcd3456f47ae5cd28fa672a7a6911 /crates/hir_ty/src/infer/pat.rs
parent8289b96216b5d4ddd0b6cf9feccb7af574d022a8 (diff)
Rename Ty::interned to Ty::kind
... since that's the actual method on Chalk side that matches the signature.
Diffstat (limited to 'crates/hir_ty/src/infer/pat.rs')
-rw-r--r--crates/hir_ty/src/infer/pat.rs2
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 f1316415f..10df8d8cb 100644
--- a/crates/hir_ty/src/infer/pat.rs
+++ b/crates/hir_ty/src/infer/pat.rs
@@ -211,7 +211,7 @@ impl<'a> InferenceContext<'a> {
211 return inner_ty; 211 return inner_ty;
212 } 212 }
213 Pat::Slice { prefix, slice, suffix } => { 213 Pat::Slice { prefix, slice, suffix } => {
214 let (container_ty, elem_ty): (fn(_) -> _, _) = match expected.interned(&Interner) { 214 let (container_ty, elem_ty): (fn(_) -> _, _) = match expected.kind(&Interner) {
215 TyKind::Array(st) => (TyKind::Array, st.clone()), 215 TyKind::Array(st) => (TyKind::Array, st.clone()),
216 TyKind::Slice(st) => (TyKind::Slice, st.clone()), 216 TyKind::Slice(st) => (TyKind::Slice, st.clone()),
217 _ => (TyKind::Slice, self.err_ty()), 217 _ => (TyKind::Slice, self.err_ty()),