Back out "Handle missing fields diagnostics"

This backs out commit e6a103ae50.
This commit is contained in:
David Barsky 2025-01-27 17:20:11 -05:00
parent f3451d54d6
commit 35f6123059
11 changed files with 12 additions and 59 deletions

View file

@ -319,9 +319,8 @@ impl<'a> Ctx<'a> {
};
let visibility = self.lower_visibility(field);
let type_ref = TypeRef::from_ast_opt(body_ctx, field.ty());
let has_default = field.expr().is_some();
Field { name, type_ref, visibility, has_default }
Field { name, type_ref, visibility }
}
fn lower_tuple_field(
@ -333,7 +332,7 @@ impl<'a> Ctx<'a> {
let name = Name::new_tuple_field(idx);
let visibility = self.lower_visibility(field);
let type_ref = TypeRef::from_ast_opt(body_ctx, field.ty());
Field { name, type_ref, visibility, has_default: false }
Field { name, type_ref, visibility }
}
fn lower_union(&mut self, union: &ast::Union) -> Option<FileItemTreeId<Union>> {