aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/lib.rs
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-04-05 13:38:28 +0100
committerLaurenČ›iu Nicola <[email protected]>2021-04-05 13:39:06 +0100
commit72c54c53cdc543eab40fc5d4593e6a7f57c94755 (patch)
treea6054d3be3c3c91fdd1b076d3392c69be24b6965 /crates/hir_ty/src/lib.rs
parent65c2e5194034e4f6f556b96e71ce62bc2a465a35 (diff)
Rename TyKind::ForeignType to Foreign
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
-rw-r--r--crates/hir_ty/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs
index 9e030e775..d1513df1f 100644
--- a/crates/hir_ty/src/lib.rs
+++ b/crates/hir_ty/src/lib.rs
@@ -290,7 +290,7 @@ impl Ty {
290 Some(db.lookup_intern_callable_def(callable.into()).into()) 290 Some(db.lookup_intern_callable_def(callable.into()).into())
291 } 291 }
292 TyKind::AssociatedType(type_alias, ..) => Some(from_assoc_type_id(type_alias).into()), 292 TyKind::AssociatedType(type_alias, ..) => Some(from_assoc_type_id(type_alias).into()),
293 TyKind::ForeignType(type_alias, ..) => Some(from_foreign_def_id(type_alias).into()), 293 TyKind::Foreign(type_alias, ..) => Some(from_foreign_def_id(type_alias).into()),
294 _ => None, 294 _ => None,
295 } 295 }
296 } 296 }
@@ -312,7 +312,7 @@ impl Ty {
312 (TyKind::AssociatedType(ty_id, ..), TyKind::AssociatedType(ty_id2, ..)) => { 312 (TyKind::AssociatedType(ty_id, ..), TyKind::AssociatedType(ty_id2, ..)) => {
313 ty_id == ty_id2 313 ty_id == ty_id2
314 } 314 }
315 (TyKind::ForeignType(ty_id, ..), TyKind::ForeignType(ty_id2, ..)) => ty_id == ty_id2, 315 (TyKind::Foreign(ty_id, ..), TyKind::Foreign(ty_id2, ..)) => ty_id == ty_id2,
316 (TyKind::Closure(id1, _), TyKind::Closure(id2, _)) => id1 == id2, 316 (TyKind::Closure(id1, _), TyKind::Closure(id2, _)) => id1 == id2,
317 (TyKind::Ref(mutability, ..), TyKind::Ref(mutability2, ..)) 317 (TyKind::Ref(mutability, ..), TyKind::Ref(mutability2, ..))
318 | (TyKind::Raw(mutability, ..), TyKind::Raw(mutability2, ..)) => { 318 | (TyKind::Raw(mutability, ..), TyKind::Raw(mutability2, ..)) => {