aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-21 20:08:49 +0100
committerGitHub <[email protected]>2021-05-21 20:08:49 +0100
commit5b6c0c1af290996a407fb4be51e852317dfab7c2 (patch)
tree02427f247d4e1ffc55e631c9b8579147c76e4035 /crates/hir_def/src/nameres
parentedbde25ca2f13ffacfd006ada7b38618d36d97c6 (diff)
parent45f4a1e559f11054fd567be24d91b5559b76a397 (diff)
Merge #8914
8914: internal: remove `StructDefKind` r=jonas-schievink a=jonas-schievink The `Fields` enum already encodes this, so `StructDefKind` is redundant. bors r+ Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_def/src/nameres')
-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) => {