diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-21 20:08:49 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-21 20:08:49 +0100 |
commit | 5b6c0c1af290996a407fb4be51e852317dfab7c2 (patch) | |
tree | 02427f247d4e1ffc55e631c9b8579147c76e4035 /crates/hir_def/src/item_tree.rs | |
parent | edbde25ca2f13ffacfd006ada7b38618d36d97c6 (diff) | |
parent | 45f4a1e559f11054fd567be24d91b5559b76a397 (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/item_tree.rs')
-rw-r--r-- | crates/hir_def/src/item_tree.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs index 797b905d1..7440e7d29 100644 --- a/crates/hir_def/src/item_tree.rs +++ b/crates/hir_def/src/item_tree.rs | |||
@@ -560,17 +560,6 @@ pub struct Struct { | |||
560 | pub generic_params: Interned<GenericParams>, | 560 | pub generic_params: Interned<GenericParams>, |
561 | pub fields: Fields, | 561 | pub fields: Fields, |
562 | pub ast_id: FileAstId<ast::Struct>, | 562 | pub ast_id: FileAstId<ast::Struct>, |
563 | pub kind: StructDefKind, | ||
564 | } | ||
565 | |||
566 | #[derive(Debug, Clone, Eq, PartialEq)] | ||
567 | pub enum StructDefKind { | ||
568 | /// `struct S { ... }` - type namespace only. | ||
569 | Record, | ||
570 | /// `struct S(...);` | ||
571 | Tuple, | ||
572 | /// `struct S;` | ||
573 | Unit, | ||
574 | } | 563 | } |
575 | 564 | ||
576 | #[derive(Debug, Clone, Eq, PartialEq)] | 565 | #[derive(Debug, Clone, Eq, PartialEq)] |