Skip to content

Commit 8615595

Browse files
authored
Rollup merge of rust-lang#114070 - blyxyas:iter_mut_symbol, r=oli-obk
Add `sym::iter_mut` + `sym::as_mut_ptr` for Clippy We currently have `sym::iter` and `sym::iter_repeat`, this PR adds `sym::iter_mut` as it's useful for rust-lang/rust-clippy#11038 and another Clippy lint, it also adds `sym::as_mut_ptr` as it's useful for rust-lang/rust-clippy#10962.
2 parents ed2ec81 + 0404b6b commit 8615595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/bytecount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub(super) fn check<'tcx>(
4545
let haystack = if let ExprKind::MethodCall(path, receiver, [], _) =
4646
filter_recv.kind {
4747
let p = path.ident.name;
48-
if p == sym::iter || p == sym!(iter_mut) {
48+
if p == sym::iter || p == sym::iter_mut {
4949
receiver
5050
} else {
5151
filter_recv

0 commit comments

Comments
 (0)