mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fill struct fields diagnostic
This commit is contained in:
parent
32db5884ad
commit
26ed925685
9 changed files with 269 additions and 18 deletions
|
@ -2371,6 +2371,10 @@ impl NamedFieldList {
|
|||
pub fn fields(&self) -> impl Iterator<Item = &NamedField> {
|
||||
super::children(self)
|
||||
}
|
||||
|
||||
pub fn spread(&self) -> Option<&Expr> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// NeverType
|
||||
|
@ -3564,10 +3568,6 @@ impl StructLit {
|
|||
pub fn named_field_list(&self) -> Option<&NamedFieldList> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
|
||||
pub fn spread(&self) -> Option<&Expr> {
|
||||
super::child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
// StructPat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue