mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Rename TyKind::ForeignType to Foreign
This commit is contained in:
parent
65c2e51940
commit
72c54c53cd
7 changed files with 10 additions and 10 deletions
|
@ -55,7 +55,7 @@ impl TyFingerprint {
|
|||
TyKind::Adt(AdtId(adt), _) => TyFingerprint::Adt(adt),
|
||||
TyKind::Tuple(cardinality, _) => TyFingerprint::Tuple(cardinality),
|
||||
TyKind::Raw(mutability, ..) => TyFingerprint::RawPtr(mutability),
|
||||
TyKind::ForeignType(alias_id, ..) => TyFingerprint::ForeignType(alias_id),
|
||||
TyKind::Foreign(alias_id, ..) => TyFingerprint::ForeignType(alias_id),
|
||||
TyKind::Function(FnPointer { num_args, sig, .. }) => {
|
||||
TyFingerprint::FnPtr(num_args, sig)
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ impl Ty {
|
|||
TyKind::Adt(AdtId(def_id), _) => {
|
||||
return mod_to_crate_ids(def_id.module(db.upcast()));
|
||||
}
|
||||
TyKind::ForeignType(id) => {
|
||||
TyKind::Foreign(id) => {
|
||||
return mod_to_crate_ids(
|
||||
from_foreign_def_id(*id).lookup(db.upcast()).module(db.upcast()),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue