]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/ptr_offset_with_cast.rs
resolve the conflict in compiler/rustc_session/src/parse.rs
[rust.git] / clippy_lints / src / ptr_offset_with_cast.rs
index 964564b57946b5784536ab86e62013fe073b869d..b907f38afbb92f96dfb27efe3659872e239bac34 100644 (file)
@@ -93,7 +93,7 @@ fn expr_as_ptr_offset_call<'tcx>(
     cx: &LateContext<'tcx>,
     expr: &'tcx Expr<'_>,
 ) -> Option<(&'tcx Expr<'tcx>, &'tcx Expr<'tcx>, Method)> {
-    if let ExprKind::MethodCall(path_segment, _, [arg_0, arg_1, ..], _) = &expr.kind {
+    if let ExprKind::MethodCall(path_segment, [arg_0, arg_1, ..], _) = &expr.kind {
         if is_expr_ty_raw_ptr(cx, arg_0) {
             if path_segment.ident.name == sym::offset {
                 return Some((arg_0, arg_1, Method::Offset));