Fix contains_exterior_struct_lit
This commit is contained in:
parent
ab821aed0c
commit
4cb5643bd4
1 changed files with 2 additions and 1 deletions
|
@ -392,7 +392,8 @@ pub fn contains_exterior_struct_lit(value: &ast::Expr) -> bool {
|
|||
| ast::ExprKind::Cast(x, _)
|
||||
| ast::ExprKind::Type(x, _)
|
||||
| ast::ExprKind::Field(x, _)
|
||||
| ast::ExprKind::Index(x, _, _) => {
|
||||
| ast::ExprKind::Index(x, _, _)
|
||||
| ast::ExprKind::Match(x, _, ast::MatchKind::Postfix) => {
|
||||
// &X { y: 1 }, X { y: 1 }.y
|
||||
contains_exterior_struct_lit(x)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue