diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-01-09 18:00:37 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-01-09 18:00:37 +0100 |
| commit | b5bf09e57afa50a2ecc9bfc07bad4ef64d9df447 (patch) | |
| tree | cf262aea51c147a0348a7112966198ea63fc0303 /book/src/development | |
| parent | 11f38ade90a2e1f9cee925260ffbe8bc0e3ad761 (diff) | |
| parent | 894e87cd5160a2198940a35dc105ce6e46d9763e (diff) | |
| download | rust-b5bf09e57afa50a2ecc9bfc07bad4ef64d9df447.tar.gz rust-b5bf09e57afa50a2ecc9bfc07bad4ef64d9df447.zip | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'book/src/development')
| -rw-r--r-- | book/src/development/infrastructure/changelog_update.md | 5 | ||||
| -rw-r--r-- | book/src/development/method_checking.md | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/book/src/development/infrastructure/changelog_update.md b/book/src/development/infrastructure/changelog_update.md index df9b1bbe18f..2b2c096b049 100644 --- a/book/src/development/infrastructure/changelog_update.md +++ b/book/src/development/infrastructure/changelog_update.md @@ -83,7 +83,12 @@ As section headers, we use: ``` ### New Lints +* Added [`LINT`] to `GROUP` + ### Moves and Deprecations +* Moved [`LINT`] to `GROUP` (From `GROUP`, now LEVEL-by-default) +* Renamed `LINT` to [`LINT`] + ### Enhancements ### False Positive Fixes ### Suggestion Fixes/Improvements diff --git a/book/src/development/method_checking.md b/book/src/development/method_checking.md index 9c5d4b516db..b3126024b99 100644 --- a/book/src/development/method_checking.md +++ b/book/src/development/method_checking.md @@ -21,7 +21,7 @@ use clippy_utils::is_trait_method; impl<'tcx> LateLintPass<'tcx> for OurFancyMethodLint { fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) { // Check our expr is calling a method with pattern matching - if let hir::ExprKind::MethodCall(path, _, [self_arg, ..]) = &expr.kind + if let hir::ExprKind::MethodCall(path, _, [self_arg, ..], _) = &expr.kind // Check if the name of this method is `our_fancy_method` && path.ident.name.as_str() == "our_fancy_method" // We can check the type of the self argument whenever necessary. |
