aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/data.rs')
-rw-r--r--crates/ra_hir_def/src/data.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/data.rs b/crates/ra_hir_def/src/data.rs
index 5f8eb72a0..5ca331380 100644
--- a/crates/ra_hir_def/src/data.rs
+++ b/crates/ra_hir_def/src/data.rs
@@ -43,7 +43,7 @@ impl FunctionData {
43 attrs: item_tree.attrs(loc.id.value.into()).clone(), 43 attrs: item_tree.attrs(loc.id.value.into()).clone(),
44 has_self_param: func.has_self_param, 44 has_self_param: func.has_self_param,
45 is_unsafe: func.is_unsafe, 45 is_unsafe: func.is_unsafe,
46 visibility: func.visibility.clone(), 46 visibility: item_tree[func.visibility].clone(),
47 }) 47 })
48 } 48 }
49} 49}
@@ -69,7 +69,7 @@ impl TypeAliasData {
69 Arc::new(TypeAliasData { 69 Arc::new(TypeAliasData {
70 name: typ.name.clone(), 70 name: typ.name.clone(),
71 type_ref: typ.type_ref.clone(), 71 type_ref: typ.type_ref.clone(),
72 visibility: typ.visibility.clone(), 72 visibility: item_tree[typ.visibility].clone(),
73 bounds: typ.bounds.clone(), 73 bounds: typ.bounds.clone(),
74 }) 74 })
75 } 75 }
@@ -175,7 +175,7 @@ impl ConstData {
175 Arc::new(ConstData { 175 Arc::new(ConstData {
176 name: konst.name.clone(), 176 name: konst.name.clone(),
177 type_ref: konst.type_ref.clone(), 177 type_ref: konst.type_ref.clone(),
178 visibility: konst.visibility.clone(), 178 visibility: item_tree[konst.visibility].clone(),
179 }) 179 })
180 } 180 }
181} 181}
@@ -197,7 +197,7 @@ impl StaticData {
197 Arc::new(StaticData { 197 Arc::new(StaticData {
198 name: Some(statik.name.clone()), 198 name: Some(statik.name.clone()),
199 type_ref: statik.type_ref.clone(), 199 type_ref: statik.type_ref.clone(),
200 visibility: statik.visibility.clone(), 200 visibility: item_tree[statik.visibility].clone(),
201 mutable: statik.mutable, 201 mutable: statik.mutable,
202 }) 202 })
203 } 203 }