diff options
author | Laurențiu Nicola <[email protected]> | 2021-04-05 13:38:28 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-04-05 13:39:06 +0100 |
commit | 72c54c53cdc543eab40fc5d4593e6a7f57c94755 (patch) | |
tree | a6054d3be3c3c91fdd1b076d3392c69be24b6965 /crates/hir_ty/src/method_resolution.rs | |
parent | 65c2e5194034e4f6f556b96e71ce62bc2a465a35 (diff) |
Rename TyKind::ForeignType to Foreign
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
-rw-r--r-- | crates/hir_ty/src/method_resolution.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs index dc6324780..6ace970d1 100644 --- a/crates/hir_ty/src/method_resolution.rs +++ b/crates/hir_ty/src/method_resolution.rs | |||
@@ -55,7 +55,7 @@ impl TyFingerprint { | |||
55 | TyKind::Adt(AdtId(adt), _) => TyFingerprint::Adt(adt), | 55 | TyKind::Adt(AdtId(adt), _) => TyFingerprint::Adt(adt), |
56 | TyKind::Tuple(cardinality, _) => TyFingerprint::Tuple(cardinality), | 56 | TyKind::Tuple(cardinality, _) => TyFingerprint::Tuple(cardinality), |
57 | TyKind::Raw(mutability, ..) => TyFingerprint::RawPtr(mutability), | 57 | TyKind::Raw(mutability, ..) => TyFingerprint::RawPtr(mutability), |
58 | TyKind::ForeignType(alias_id, ..) => TyFingerprint::ForeignType(alias_id), | 58 | TyKind::Foreign(alias_id, ..) => TyFingerprint::ForeignType(alias_id), |
59 | TyKind::Function(FnPointer { num_args, sig, .. }) => { | 59 | TyKind::Function(FnPointer { num_args, sig, .. }) => { |
60 | TyFingerprint::FnPtr(num_args, sig) | 60 | TyFingerprint::FnPtr(num_args, sig) |
61 | } | 61 | } |
@@ -246,7 +246,7 @@ impl Ty { | |||
246 | TyKind::Adt(AdtId(def_id), _) => { | 246 | TyKind::Adt(AdtId(def_id), _) => { |
247 | return mod_to_crate_ids(def_id.module(db.upcast())); | 247 | return mod_to_crate_ids(def_id.module(db.upcast())); |
248 | } | 248 | } |
249 | TyKind::ForeignType(id) => { | 249 | TyKind::Foreign(id) => { |
250 | return mod_to_crate_ids( | 250 | return mod_to_crate_ids( |
251 | from_foreign_def_id(*id).lookup(db.upcast()).module(db.upcast()), | 251 | from_foreign_def_id(*id).lookup(db.upcast()).module(db.upcast()), |
252 | ); | 252 | ); |