diff options
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)] |