File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,30 @@ fn identify_some_pure_patterns(expr: &Expr<'_>) -> bool {
52
52
} ,
53
53
_,
54
54
) => stmts. is_empty ( ) && identify_some_pure_patterns ( expr) ,
55
- _ => false ,
55
+ ExprKind :: Box ( ..)
56
+ | ExprKind :: Array ( ..)
57
+ | ExprKind :: Call ( ..)
58
+ | ExprKind :: MethodCall ( ..)
59
+ | ExprKind :: Binary ( ..)
60
+ | ExprKind :: Unary ( ..)
61
+ | ExprKind :: Cast ( ..)
62
+ | ExprKind :: Type ( ..)
63
+ | ExprKind :: DropTemps ( ..)
64
+ | ExprKind :: Loop ( ..)
65
+ | ExprKind :: Match ( ..)
66
+ | ExprKind :: Closure ( ..)
67
+ | ExprKind :: Block ( ..)
68
+ | ExprKind :: Assign ( ..)
69
+ | ExprKind :: AssignOp ( ..)
70
+ | ExprKind :: Index ( ..)
71
+ | ExprKind :: Break ( ..)
72
+ | ExprKind :: Continue ( ..)
73
+ | ExprKind :: Ret ( ..)
74
+ | ExprKind :: InlineAsm ( ..)
75
+ | ExprKind :: LlvmInlineAsm ( ..)
76
+ | ExprKind :: Repeat ( ..)
77
+ | ExprKind :: Yield ( ..)
78
+ | ExprKind :: Err => false ,
56
79
}
57
80
}
58
81
You can’t perform that action at this time.
0 commit comments