mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-18 19:21:38 +00:00
Back out "Handle missing fields diagnostics"
This backs out commit e6a103ae50.
This commit is contained in:
parent
f3451d54d6
commit
35f6123059
11 changed files with 12 additions and 59 deletions
|
|
@ -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>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue