Skip to content

Commit 998c780

Browse files
authored
fix arguments of ExprKind::MethodCall (rust-lang#13890)
changelog: none
2 parents a8968e5 + 09022bb commit 998c780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/development/method_checking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use clippy_utils::is_trait_method;
2121
impl<'tcx> LateLintPass<'tcx> for OurFancyMethodLint {
2222
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
2323
// Check our expr is calling a method with pattern matching
24-
if let hir::ExprKind::MethodCall(path, _, [self_arg, ..]) = &expr.kind
24+
if let hir::ExprKind::MethodCall(path, _, [self_arg, ..], _) = &expr.kind
2525
// Check if the name of this method is `our_fancy_method`
2626
&& path.ident.name.as_str() == "our_fancy_method"
2727
// We can check the type of the self argument whenever necessary.

0 commit comments

Comments
 (0)