diff options
author | Laurențiu Nicola <[email protected]> | 2021-05-27 14:52:15 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-05-27 14:52:30 +0100 |
commit | 2268a220e4ba4ae6f45b564e5e88c2c62d22749d (patch) | |
tree | 0e77f330f8fee0353893f5ca4d49e8b9bb6f7f63 /crates/hir | |
parent | d0a4ba294ccf0c925a5ff1115c19a60c6a24b734 (diff) |
Don't store supertraits in ItemTree
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/display.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/hir/src/display.rs b/crates/hir/src/display.rs index c5cf803fd..72f0d9b5f 100644 --- a/crates/hir/src/display.rs +++ b/crates/hir/src/display.rs | |||
@@ -427,10 +427,6 @@ impl HirDisplay for Trait { | |||
427 | write!(f, "trait {}", data.name)?; | 427 | write!(f, "trait {}", data.name)?; |
428 | let def_id = GenericDefId::TraitId(self.id); | 428 | let def_id = GenericDefId::TraitId(self.id); |
429 | write_generic_params(def_id, f)?; | 429 | write_generic_params(def_id, f)?; |
430 | if !data.bounds.is_empty() { | ||
431 | write!(f, ": ")?; | ||
432 | f.write_joined(&*data.bounds, " + ")?; | ||
433 | } | ||
434 | write_where_clause(def_id, f)?; | 430 | write_where_clause(def_id, f)?; |
435 | Ok(()) | 431 | Ok(()) |
436 | } | 432 | } |