]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/methods.rs
Document that pre-expansion lint passes are deprecated
[rust.git] / compiler / rustc_lint / src / methods.rs
index 5558947de0cb78d3f01349bba064cfd16bc9a7a5..ae9368347543ad4270cdc1cb9a54c9575f9d7d3a 100644 (file)
@@ -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