Add sym::iter_mut + sym::as_mut_ptr

This commit is contained in:
blyxyas 2023-07-25 20:22:41 +00:00
parent 2cc44cf748
commit 0404b6b6c2

View File

@ -45,7 +45,7 @@ pub(super) fn check<'tcx>(
let haystack = if let ExprKind::MethodCall(path, receiver, [], _) =
filter_recv.kind {
let p = path.ident.name;
if p == sym::iter || p == sym!(iter_mut) {
if p == sym::iter || p == sym::iter_mut {
receiver
} else {
filter_recv