Skip to content

Commit 77cfc9b

Browse files
committed
Fix type alias hovers not rendering generic parameters
1 parent 39eaf78 commit 77cfc9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/hir/src/display.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ impl HirDisplay for TypeAlias {
492492
write_visibility(self.module(f.db).id, self.visibility(f.db), f)?;
493493
let data = f.db.type_alias_data(self.id);
494494
write!(f, "type {}", data.name)?;
495+
let def_id = GenericDefId::TypeAliasId(self.id);
496+
write_generic_params(def_id, f)?;
497+
write_where_clause(def_id, f)?;
495498
if !data.bounds.is_empty() {
496499
f.write_str(": ")?;
497500
f.write_joined(&data.bounds, " + ")?;

0 commit comments

Comments
 (0)