Small fix after rebase

This commit is contained in:
Renato Lochetti 2024-07-03 19:54:02 +01:00
parent eff6f68caf
commit 4e71fc4302
No known key found for this signature in database
GPG Key ID: 4B78B34B3DE7EBCC

View File

@ -112,7 +112,7 @@ fn find_insert_calls<'tcx>(
contains_expr: &OpExpr<'tcx>,
expr: &'tcx Expr<'_>,
) -> Option<OpExpr<'tcx>> {
for_each_expr(expr, |e| {
for_each_expr(cx, expr, |e| {
if let Some(insert_expr) = try_parse_op_call(cx, e, sym!(insert))
&& SpanlessEq::new(cx).eq_expr(contains_expr.receiver, insert_expr.receiver)
&& SpanlessEq::new(cx).eq_expr(contains_expr.value, insert_expr.value)