about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/methods.rs
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-12-01 11:17:50 -0600
committerCameron Steffen <cam.steffen94@gmail.com>2022-01-21 07:48:10 -0600
commitb11733534d95aebe0b4f949f8e4c8f21c312f108 (patch)
tree12ff6db964e10b1c2e6e8f0d19a23d06c0de77c3 /compiler/rustc_lint/src/methods.rs
parent84e918971d643c6a33067d5125214ab800ce5307 (diff)
downloadrust-b11733534d95aebe0b4f949f8e4c8f21c312f108.tar.gz
rust-b11733534d95aebe0b4f949f8e4c8f21c312f108.zip
Remove a span from hir::ExprKind::MethodCall
Diffstat (limited to 'compiler/rustc_lint/src/methods.rs')
-rw-r--r--compiler/rustc_lint/src/methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/methods.rs b/compiler/rustc_lint/src/methods.rs
index 5558947de0c..ae936834754 100644
--- a/compiler/rustc_lint/src/methods.rs
+++ b/compiler/rustc_lint/src/methods.rs
@@ -44,7 +44,7 @@ fn in_macro(span: Span) -> bool {
 fn first_method_call<'tcx>(
     expr: &'tcx Expr<'tcx>,
 ) -> Option<(&'tcx PathSegment<'tcx>, &'tcx [Expr<'tcx>])> {
-    if let ExprKind::MethodCall(path, _, args, _) = &expr.kind {
+    if let ExprKind::MethodCall(path, args, _) = &expr.kind {
         if args.iter().any(|e| e.span.from_expansion()) { None } else { Some((path, *args)) }
     } else {
         None