Remove a span from hir::ExprKind::MethodCall
This commit is contained in:
@@ -24,7 +24,7 @@ pub(super) fn derefs_to_slice<'tcx>(
|
||||
}
|
||||
}
|
||||
|
||||
if let hir::ExprKind::MethodCall(path, _, [self_arg, ..], _) = &expr.kind {
|
||||
if let hir::ExprKind::MethodCall(path, [self_arg, ..], _) = &expr.kind {
|
||||
if path.ident.name == sym::iter && may_slice(cx, cx.typeck_results().expr_ty(self_arg)) {
|
||||
Some(self_arg)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user