fill struct fields diagnostic
This commit is contained in:
committed by
Sergey Parilin
parent
32db5884ad
commit
26ed925685
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user