diff options
Diffstat (limited to 'crates/ra_hir_ty/src/lib.rs')
-rw-r--r-- | crates/ra_hir_ty/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/ra_hir_ty/src/lib.rs b/crates/ra_hir_ty/src/lib.rs index 79084bb3e..1f0fd1128 100644 --- a/crates/ra_hir_ty/src/lib.rs +++ b/crates/ra_hir_ty/src/lib.rs | |||
@@ -912,7 +912,8 @@ impl HirDisplay for ApplicationTy { | |||
912 | write!(f, ") -> {}", sig.ret().display(f.db))?; | 912 | write!(f, ") -> {}", sig.ret().display(f.db))?; |
913 | } | 913 | } |
914 | TypeCtor::FnDef(def) => { | 914 | TypeCtor::FnDef(def) => { |
915 | let sig = f.db.callable_item_signature(def); | 915 | let sig = f.db.callable_item_signature(def) |
916 | .subst(&self.parameters); | ||
916 | let name = match def { | 917 | let name = match def { |
917 | CallableDef::FunctionId(ff) => f.db.function_data(ff).name.clone(), | 918 | CallableDef::FunctionId(ff) => f.db.function_data(ff).name.clone(), |
918 | CallableDef::StructId(s) => f.db.struct_data(s).name.clone(), | 919 | CallableDef::StructId(s) => f.db.struct_data(s).name.clone(), |
@@ -933,8 +934,8 @@ impl HirDisplay for ApplicationTy { | |||
933 | write!(f, ">")?; | 934 | write!(f, ">")?; |
934 | } | 935 | } |
935 | write!(f, "(")?; | 936 | write!(f, "(")?; |
936 | f.write_joined(sig.value.params(), ", ")?; | 937 | f.write_joined(sig.params(), ", ")?; |
937 | write!(f, ") -> {}", sig.value.ret().display(f.db))?; | 938 | write!(f, ") -> {}", sig.ret().display(f.db))?; |
938 | } | 939 | } |
939 | TypeCtor::Adt(def_id) => { | 940 | TypeCtor::Adt(def_id) => { |
940 | let name = match def_id { | 941 | let name = match def_id { |