Fix contains_exterior_struct_lit
This commit is contained in:
parent
ab821aed0c
commit
4cb5643bd4
@ -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…
Reference in New Issue
Block a user