aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres/collector.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/nameres/collector.rs')
-rw-r--r--crates/hir_def/src/nameres/collector.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs
index fa4b135fd..9b108bfe7 100644
--- a/crates/hir_def/src/nameres/collector.rs
+++ b/crates/hir_def/src/nameres/collector.rs
@@ -27,8 +27,8 @@ use crate::{
27 intern::Interned, 27 intern::Interned,
28 item_scope::{ImportType, PerNsGlobImports}, 28 item_scope::{ImportType, PerNsGlobImports},
29 item_tree::{ 29 item_tree::{
30 self, FileItemTreeId, ItemTree, ItemTreeId, MacroCall, MacroDef, MacroRules, Mod, ModItem, 30 self, Fields, FileItemTreeId, ItemTree, ItemTreeId, MacroCall, MacroDef, MacroRules, Mod,
31 ModKind, StructDefKind, 31 ModItem, ModKind,
32 }, 32 },
33 macro_call_as_call_id, 33 macro_call_as_call_id,
34 nameres::{ 34 nameres::{
@@ -1281,7 +1281,7 @@ impl ModCollector<'_, '_> {
1281 .into(), 1281 .into(),
1282 name: &it.name, 1282 name: &it.name,
1283 visibility: &self.item_tree[it.visibility], 1283 visibility: &self.item_tree[it.visibility],
1284 has_constructor: it.kind != StructDefKind::Record, 1284 has_constructor: !matches!(it.fields, Fields::Record(_)),
1285 }); 1285 });
1286 } 1286 }
1287 ModItem::Union(id) => { 1287 ModItem::Union(id) => {