aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/display.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/display.rs
parent65c2e5194034e4f6f556b96e71ce62bc2a465a35 (diff)
Rename TyKind::ForeignType to Foreign
Diffstat (limited to 'crates/hir_ty/src/display.rs')
-rw-r--r--crates/hir_ty/src/display.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs
index 83d09a8c7..5ff70c893 100644
--- a/crates/hir_ty/src/display.rs
+++ b/crates/hir_ty/src/display.rs
@@ -529,7 +529,7 @@ impl HirDisplay for Ty {
529 projection_ty.hir_fmt(f)?; 529 projection_ty.hir_fmt(f)?;
530 } 530 }
531 } 531 }
532 TyKind::ForeignType(type_alias) => { 532 TyKind::Foreign(type_alias) => {
533 let type_alias = f.db.type_alias_data(from_foreign_def_id(*type_alias)); 533 let type_alias = f.db.type_alias_data(from_foreign_def_id(*type_alias));
534 write!(f, "{}", type_alias.name)?; 534 write!(f, "{}", type_alias.name)?;
535 } 535 }