diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-27 15:27:56 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-27 15:27:56 +0100 |
commit | cc5d8069219a0a52f9c98b6766d2421eaf4664d8 (patch) | |
tree | 0e77f330f8fee0353893f5ca4d49e8b9bb6f7f63 /crates/hir_def/src/data.rs | |
parent | d0a4ba294ccf0c925a5ff1115c19a60c6a24b734 (diff) | |
parent | 2268a220e4ba4ae6f45b564e5e88c2c62d22749d (diff) |
Merge #9024
9024: internal: Don't store supertraits in ItemTree r=jonas-schievink a=lnicola
Closes #9010
Co-authored-by: Laurențiu Nicola <[email protected]>
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> + '_ { |