diff options
Diffstat (limited to 'crates/hir_def/src/data.rs')
-rw-r--r-- | crates/hir_def/src/data.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/hir_def/src/data.rs b/crates/hir_def/src/data.rs index 8bcac60ef..a04f73352 100644 --- a/crates/hir_def/src/data.rs +++ b/crates/hir_def/src/data.rs | |||
@@ -141,7 +141,6 @@ pub struct TraitData { | |||
141 | pub is_auto: bool, | 141 | pub is_auto: bool, |
142 | pub is_unsafe: bool, | 142 | pub is_unsafe: bool, |
143 | pub visibility: RawVisibility, | 143 | pub visibility: RawVisibility, |
144 | pub bounds: Box<[Interned<TypeBound>]>, | ||
145 | } | 144 | } |
146 | 145 | ||
147 | impl TraitData { | 146 | impl TraitData { |
@@ -155,7 +154,6 @@ impl TraitData { | |||
155 | let module_id = tr_loc.container; | 154 | let module_id = tr_loc.container; |
156 | let container = AssocContainerId::TraitId(tr); | 155 | let container = AssocContainerId::TraitId(tr); |
157 | let visibility = item_tree[tr_def.visibility].clone(); | 156 | let visibility = item_tree[tr_def.visibility].clone(); |
158 | let bounds = tr_def.bounds.clone(); | ||
159 | let mut expander = Expander::new(db, tr_loc.id.file_id(), module_id); | 157 | let mut expander = Expander::new(db, tr_loc.id.file_id(), module_id); |
160 | 158 | ||
161 | let items = collect_items( | 159 | let items = collect_items( |
@@ -168,7 +166,7 @@ impl TraitData { | |||
168 | 100, | 166 | 100, |
169 | ); | 167 | ); |
170 | 168 | ||
171 | Arc::new(TraitData { name, items, is_auto, is_unsafe, visibility, bounds }) | 169 | Arc::new(TraitData { name, items, is_auto, is_unsafe, visibility }) |
172 | } | 170 | } |
173 | 171 | ||
174 | pub fn associated_types(&self) -> impl Iterator<Item = TypeAliasId> + '_ { | 172 | pub fn associated_types(&self) -> impl Iterator<Item = TypeAliasId> + '_ { |